Joel de Guzman
f7b90f2981
Merge pull request #124 from Flast/feature/ticket-11157-remove-BOOST_PP_IS_EMPTY
...
Remove use of BOOST_PP_IS_EMPTY.
2016-02-17 04:45:16 +08:00
Kohei Takahashi
4173b4b97b
Suppress conversion warnings on MSVC.
2016-02-16 01:02:58 +09:00
Damien Buhl (alias daminetreg)
11cc331f82
Add test with namespaced names, as it could break with the macro concatenation to check for BOOST_MPL_PP_TOKEN_EQUAL_auto equality.
2016-02-13 14:15:53 +09:00
Damien Buhl (alias daminetreg)
2e466ac054
Remove BOOST_PP_IS_EMPTY in favor of BOOST_MPL_PP_TOKEN_EQUAL and added auto as synonym for BOOST_FUSION_ADAPT_AUTO.
...
Fix ticket https://svn.boost.org/trac/boost/ticket/11157
BOOST_MPL_PP_TOKEN_EQUAL is now used to check if auto/BOOST_FUSION_ADAPT_AUTO
was provided as type, telling to deduce members types.
2016-02-13 14:15:53 +09:00
Kohei Takahashi
981f71d04f
Use boost::enable_if_has_type instead.
2015-11-01 11:10:11 +09:00
Joel de Guzman
1d45a87201
Merge pull request #102 from Flast/sfinae-friendly-fold
...
SFINAE-friendly fusion::fold
2015-10-16 06:32:12 +08:00
Kohei Takahashi
cbd2e1dc1d
Suppress unused warning.
2015-09-09 18:05:04 +09:00
Kohei Takahashi
a6d1b303b3
Fix block comment style.
...
Intel Compiler warns on nested comment.
2015-09-09 13:35:03 +09:00
Kohei Takahashi
76b7697ba5
fusion::fold allows to take non-const lv-ref state properly.
2015-09-08 15:14:27 +09:00
Kohei Takahashi
d3449ab5e5
Overhaul the fusion::fold family to make SFINAE-friendly.
2015-09-04 00:51:56 +09:00
Kohei Takahashi
c30fabf98f
Apply 7fdb320
change into C++98 interface.
2015-08-30 17:13:36 +09:00
Kohei Takahashi
10d9f0ffba
Add convert tests for non-assoc containers.
2015-08-25 23:36:32 +09:00
Joel de Guzman
b1bb9921e2
Merge pull request #92 from Flast/bugfix/issue-11140
...
Fix a issue with nested fusion::tuple.
2015-07-27 15:26:10 +08:00
Kohei Takahashi
4fa0a5f550
Add tests for nested fusion::tuple.
2015-07-27 13:31:19 +09:00
Louis Dionne
7fdb3201fa
[Deque] Make the from-sequence constructor SFINAE friendly
2015-07-24 22:11:53 +02:00
Kohei Takahashi
2b14951660
Split c++14 like index_sequence into support/detail.
2015-06-22 21:58:54 +09:00
Kohei Takahashi
3521ea3417
Suppress warnings.
2015-06-08 21:41:54 +09:00
Kohei Takahashi
e0f10734b1
Fix issue 11267.
...
Compiler yields compile error within a function witch used in unevaluate
context of constexpr function because of CWG 1581 [2].
1. https://llvm.org/bugs/show_bug.cgi?id=23135
2. http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1581
2015-06-08 11:53:17 +09:00
Damien Buhl (alias daminetreg)
9911e05838
Adds test for each case adapter macros we support to adapt an empty type.
2015-05-15 09:09:10 +02:00
Damien Buhl (alias daminetreg)
8b1da45bfe
Fix 11269 ( https://svn.boost.org/trac/boost/ticket/11269 ) and add test case for it.
2015-05-06 08:21:02 +02:00
Damien Buhl (alias daminetreg)
3c34d639df
Merge branch 'master' into develop
2015-04-29 16:20:05 +02:00
Damien Buhl (alias daminetreg)
b902afa5a0
fix testcase when BOOST_PP_VARIADICS is disabled.
2015-04-29 15:58:41 +02:00
Damien Buhl (alias daminetreg)
265de03026
Add test cases for non-constexpr compatible types.
2015-04-26 22:19:31 +02:00
Joel de Guzman
91966ae524
added test case for https://svn.boost.org/trac/boost/ticket/11211
2015-04-21 03:46:25 +08:00
Joel de Guzman
e881ea67cb
Merge pull request #63 from Flast/develop
...
Add tests and documents
2015-03-16 08:43:34 +08:00
Kohei Takahashi
8c72a0012f
Merge remote-tracking branch 'origin/develop' into feature/sfinae-friendly-result_of
2015-03-09 10:45:42 +09:00
Jamboree
d03f79b6fd
Update documents and tests for #8270 from Jamboree.
...
https://svn.boost.org/trac/boost/ticket/8270
see also: b36426c8e3
2015-02-22 01:06:27 +09:00
Kohei Takahashi
52eb8768f2
Add test for #9418 , abstract types for key of map.
...
https://svn.boost.org/trac/boost/ticket/9418
2015-02-22 00:11:04 +09:00
Kohei Takahashi
bd4b1cdac6
Fix #10443 : SFINAE-friendly result_of::invoke.
...
It means previous pull-requests (#24 ) is still incomplete.
2015-02-12 21:21:01 +09:00
Joel de Guzman
e23d153734
Merge pull request #54 from boostorg/fusion_adapters
...
Type Deducing Fusion adapters into develop
2015-02-11 06:53:28 +08:00
Joel de Guzman
505d41ea67
Merge pull request #49 from Flast/bugfix/msvc
...
Fix two major MSVC issues.
2015-02-09 06:53:57 +08:00
Kohei Takahashi
c5c0147d7d
Add many tests for SFINAE-friendly result_of::invoke.
2015-02-08 19:23:06 +09:00
Damien Buhl (alias daminetreg)
73a5dde412
Merge remote-tracking branch 'official/develop' into fusion_adapters
...
Conflicts:
test/sequence/adapt_struct.cpp
2015-02-02 07:06:52 +01:00
Kohei Takahashi
b60219eb8a
Fix testcase for MSVC 10.0.
...
MSVC 10.0/11.0 have <tuple> but don't compile variadic templates.
2015-02-02 04:08:13 +09:00
Kohei Takahashi
5e4978b870
Fix some warnings within tests.
2015-01-21 01:13:19 +09:00
Kohei Takahashi
ce8bf1079a
Support removing the C++11 standard reference wrappers.
2015-01-15 18:58:33 +09:00
Joel de Guzman
af1bc25783
- disabling test for now (todo later)
...
- removing irrelevant tuple test
2015-01-05 17:43:35 +08:00
Kohei Takahashi
24e95c34fb
Add tests for #9914
2014-12-05 01:39:27 +09:00
Kohei Takahashi
ed9880c161
Fix out of bounds access within {front|back}_extended_deque with empty deque.
...
The insertion point is not correct with empty deque since the range
{next_down, next_up} is not half-open range.
2014-12-05 01:39:27 +09:00
Kohei Takahashi
4dd4773d3d
Fix wrong include
...
and add tests for move.
2014-11-19 17:38:16 +09:00
Joel de Guzman
c952a5c053
Const correctness fix for result_of::deref_data
2014-11-19 07:54:37 +08:00
Damien Buhl (alias daminetreg)
b5018586aa
Breaking change of BOOST_FUSION_ADAPT_ADT_NAMED and BOOST_FUSION_ADAPT_ASSOC_ADT_NAMED API to be coherent with the expressions of BOOST_FUSION_ADAPT_ADT thanks to correct usage of BOOST_FUSION_PROXY_PREFIX.
2014-11-18 23:38:47 +01:00
Joel de Guzman
d10f40c489
Merge pull request #40 from Flast/patch-1
...
result_of::size::value and result_of::size::type::value should be same type
2014-11-19 06:22:41 +08:00
Joel de Guzman
0f34b3a692
Fixed C++11 implementation of map's result_of::deref_data to return a
...
reference as expected.
2014-11-18 23:11:20 +08:00
Joel de Guzman
f3fa7a1dc6
Fix for fusion pair to make the compiler select the proper copy
...
constructor and remove a viable, but wrong, constructor. test added.
2014-11-15 09:35:50 +08:00
Kohei Takahashi
cc9b043168
result_of::size::value and result_of::size::type::value should be same type, rels to: #7304 .
2014-11-13 15:44:30 +09:00
Joel de Guzman
a4660f41af
added failing test as per https://github.com/boostorg/fusion/pull/38
2014-11-13 09:03:37 +08:00
Louis Dionne
0ed591d214
Fix compilation error with as_deque in C++11.
2014-11-12 14:59:28 -05:00
Joel de Guzman
15dd9c9d97
test that adapted members can actually be expressions
2014-11-12 11:13:19 +08:00
Joel de Guzman
1dccb553ea
Merge pull request #35 from Flast/develop
...
Minor fixes
2014-11-12 07:39:17 +08:00
Louis Dionne
d93e675408
Fix hard compilation error with nested fusion::cons.
2014-11-11 10:23:36 -05:00
Kohei Takahashi
95d2a111ab
Add tests for #3225
2014-11-09 02:55:59 +09:00
Kohei Takahashi
ff56beaf55
Remove use of boost::blank
, close #8622
2014-11-09 00:49:29 +09:00
Kohei Takahashi
7a7b225fb1
Add boost_tuple_iterator_identity to compare iterator correctly.
...
And add test for boost_tuple_iterator.
2014-11-06 17:10:31 +09:00
Kohei Takahashi
0a13aa5ee4
Change the result_of behaviour with BOOST_RESULT_OF_USE_DECLTYPE
...
to make consistency between boost::result_of.
2014-11-02 15:08:56 +09:00
Kohei Takahashi
7ef4b03249
Fix typo/missing copyright notice, reported by Boost Inspection Report.
2014-11-01 22:12:11 +09:00
Kohei Takahashi
f73b5362c5
Fix test error with C++03 mode, due to C++11 using-declaration.
2014-11-01 16:53:37 +09:00
Joel de Guzman
5ae01ad6a9
- Added sfinae test case for fold
...
- Some cleanup
2014-10-28 09:06:42 +08:00
Joel de Guzman
d5eb1e793c
Merge pull request #26 from ldionne/master
...
Improve support for constexpr in fusion::nil and its iterators.
2014-10-28 08:12:04 +08:00
Damien Buhl (alias daminetreg)
2f850604e8
Merge remote-tracking branch 'official/develop' into fusion_adapters
2014-10-27 14:00:49 +01:00
Damien Buhl (alias daminetreg)
e50f5852e4
Changes the test cases, as the behaviour about const-qualifier for
...
attribute_type and attribute_const_type when type is deduced can be
different than when the type is provided.
Indeed when specifying attribute_type and attribute_const_type manually
it's possible to provide a type which isn't const qualified as
attribute_const_type. When deducing the types from the get_expr, a const
and a non const qualified type is taken respectively for attribute_type
and attribute_const_type.
2014-10-22 22:06:31 +02:00
Damien Buhl (alias daminetreg)
020b22f9b9
Fix test for compiler not supporting BOOST_PP_VARIADIC.
2014-10-20 22:32:28 +02:00
Damien Buhl (alias daminetreg)
cfcdbe1195
Change adapt_assoc_tpl_adt to test type inference from templated type.
2014-10-20 21:25:07 +02:00
Damien Buhl (alias daminetreg)
2b5da49628
lvalue access::struct_member was wrongly set to be adt_attribute_proxy<> instead of adt_attribute_proxy<>::type. Shame on me.
2014-10-12 16:25:59 +02:00
Damien Buhl (alias daminetreg)
644d72ccfe
adds type deduction support for BOOST_FUSION_ADAPT_ASSOC_ADT.
2014-10-12 14:51:04 +02:00
Damien Buhl (alias daminetreg)
103b02fda2
add test for BOOST_FUSION_ADAPT_ADT_NAMED deducing types.
2014-10-12 12:50:56 +02:00
Kohei Takahashi
b8c65b976c
Fix test error on non-c++11 env.
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-10-09 00:57:37 +09:00
Kohei Takahashi
790810757a
Rename the test tr1_tuple_auto_conv to std_tuple_auto_conv.
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-10-09 00:56:17 +09:00
jzmaddock
f869aa1591
Change to test std::tuple now that Boost.TR1 is deprecated and due to be removed.
2014-09-27 13:22:56 +01:00
Damien Buhl (alias daminetreg)
69e67cd1ad
BUGFIX: When VARIADICS are active supporting any of the input combination.
...
That is : BOOST_FUSION_ADAPT_AUTO, omitting type or specifying type.
2014-09-17 00:47:52 +02:00
Damien Buhl (alias daminetreg)
f0bc2a2ac1
Fix dependents scopes and typedefs with typename keywords.
2014-08-26 23:32:26 +02:00
Damien Buhl (alias daminetreg)
727f49b49e
Improve adapt_adt test to check more case with type deduction.
2014-08-26 22:00:16 +02:00
Damien Buhl (alias daminetreg)
7b089aa589
Add support for BOOST_FUSION_ADAPT_ADT to either deduce types or use specified ones.
2014-08-10 17:09:57 +02:00
Damien Buhl (alias daminetreg)
a54c543dd7
Adapted test cases for adapt_assoc_tpl_struct with type deduction.
2014-07-27 16:31:15 +02:00
Damien Buhl (alias daminetreg)
a13d1346f6
Adapted tests of assoc_struct to the type-deducing version of the ADAPT* macros.
2014-07-27 15:51:12 +02:00
fiesh
70410d1e07
replaced tabs with 4 spaces
2014-07-24 14:45:45 +02:00
fiesh
f7685b1194
add automatic hash function creation
2014-07-24 14:22:55 +02:00
Damien Buhl (alias daminetreg)
a5d6fd0800
Test adapt_assoc_tpl_struct checking support for type deduction.
2014-07-23 02:49:28 +02:00
Damien Buhl (alias daminetreg)
5422ba7f8f
Adds the possibility to omit the member type in ADAPT_ASSOC* macros usage.
...
This feature is enabled when BOOST_PP_VARIADICS also is, as it rely on it.
A placeholder for the type can be used when BOOST_PP_VARIADICS isn't
active.
2014-07-23 02:42:30 +02:00
Damien Buhl (alias daminetreg)
bf66c12cde
Fix the unit test of adapt_struct for consistency with other tests of the same kind.
2014-06-25 00:25:14 +02:00
Damien Buhl (alias daminetreg)
abff92ab65
Add support for members types deduction to the ADAPT_STRUCT_NAMED macro.
2014-06-25 00:11:40 +02:00
Damien Buhl (alias daminetreg)
f0eab528e9
Fix adapt_struct test which was missing an using keyword.
2014-06-14 11:40:51 +02:00
Damien Buhl (alias daminetreg)
0e50a02fbc
Remove deleted unit tests from Jamfile.
2014-06-13 23:09:39 +02:00
Damien Buhl (alias daminetreg)
4cf96e14f3
Added test for the new ADAPT_STRUCT API capable to deduce member types.
2014-06-13 23:09:39 +02:00
Damien Buhl (alias daminetreg)
04ce8a788b
Enabled new ADAPT_STRUCT_API for ADAPT_TPL_STRUCT.
2014-06-13 23:09:38 +02:00
Damien Buhl (alias daminetreg)
557b3d2dc6
Fix detection of member_type parameter emptiness for BOOST_FUSION_ADAPT_STRUCT.
...
As BOOST_PP_IS_EMPTY is not a general purpose emptiness checker, we limit
the ways it can be used.
2014-06-13 23:09:38 +02:00
Damien Buhl (alias daminetreg)
02b776360a
FEATURE: BOOST_FUSION_ADAPT_STRUCT can now also be called completely with
...
variadics arguments.
The following signature is possible :
BOOST_FUSION_ADAPT_STRUCT(
struct_name,
member_name0,
(BOOST_FUSION_ADAPT_AUTO, member_name1)
(member_type2, member_name2)
member_name3,
...
)
2014-06-13 23:09:38 +02:00
Damien Buhl (alias daminetreg)
6f6bfb3a27
EDITORIAL: Cleaning the ADAPT_STRUCT which can deduce types.
2014-06-13 23:07:32 +02:00
Damien Buhl (alias daminetreg)
703bff4ff9
FEATURE: Types of a struct can freely pe provided or deduced, following the user preferences.
2014-06-13 23:07:32 +02:00
Damien Buhl (alias daminetreg)
7e1c6cdf47
FEATURE: Type deduction for BOOST_FUSION_ADAPT_STRUCT_C_BASE, with preliminary support for providing or deducing the type.
2014-06-13 23:07:16 +02:00
Damien Buhl (alias daminetreg)
c052b4b452
FEATURE: Making BOOST_FUSION_AUTO_ADAPT_STRUCT variadic.
2014-06-13 23:04:09 +02:00
Damien Buhl (alias daminetreg)
934463c7b4
FEATURE: BOOST_FUSION_AUTO_ADAPT_ASSOC_STRUCT_NAMED now allows defining a Random Access Sequence and an Associative sequence without providing the type.
2014-06-13 23:04:08 +02:00
Damien Buhl (alias daminetreg)
f7b14aee35
FEATURE: BOOST_FUSION_AUTO_ADAPT_ASSOC_STRUCT now allows defining a Random Access Sequence and an Associative sequence without providing the type.
2014-06-13 23:04:08 +02:00
Damien Buhl (alias daminetreg)
5aa9a89fb8
FEATURE: BOOST_FUSION_AUTO_ADAPT_STRUCT_NAMED_NS which allows listing class attributes to adapt without specifying types.
2014-06-13 23:04:07 +02:00
Damien Buhl (alias daminetreg)
0d7ad9f6e2
FEATURE: BOOST_FUSION_AUTO_ADAPT_STRUCT_NAMED that does not require specifying the types of the fields.
2014-06-13 23:04:07 +02:00
Damien Buhl (alias daminetreg)
3f965e00d3
#9516 BOOST_FUSION_AUTO_ADAPT_STRUCT that does not require specifying the types of the fields.
2014-06-13 23:04:07 +02:00
Kohei Takahashi
25bb75e3f8
Fix test error in msvc-10.0
...
Including fusion/adapted/std_tuple.hpp will occur compile error.
Therefore, entire test should be ignored.
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-06-12 12:24:46 +09:00
Kohei Takahashi
059c041659
Add test for convert seq to std::tuple
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-06-09 21:59:06 +09:00
Kohei Takahashi
f7adae2b3d
Add test for convert seq to tuple
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-06-09 21:59:06 +09:00
Jamboree
fd3a18ce1a
flatten/flatten_view/ref
2014-04-04 14:38:38 +08:00