Commit Graph

47 Commits

Author SHA1 Message Date
Steven Watanabe
509dc96ea7 Compiler workarounds 2018-02-20 13:47:45 -07:00
Steven Watanabe
1b92465247 Fix is_placeholder for incomplete types. 2018-02-19 21:29:31 -07:00
Steven Watanabe
9b717af1f0 Remove BOOST_TYPE_ERASURE_FUNCTION as it was poorly thought out. In particular, it makes it impossible to create a concept_map to allow member functions to be called for a built in type. Instead, BOOST_TYPE_ERASURE_MEMBER and BOOST_TYPE_ERASURE_FREE have been improved. 2018-02-19 18:59:15 -07:00
Steven Watanabe
47fa03bab7 Use MP11 in C++11 and higher. Remove hard limits. 2018-02-17 16:35:23 -07:00
Steven Watanabe
371583c584 Add BOOST_TYPE_ERASURE_FUNCTION, as a better alternative to BOOST_TYPE_ERASURE_FREE and BOOST_TYPE_ERASURE_MEMBER. 2018-02-06 17:28:04 -07:00
Steven Watanabe
595fb5316e Make constructors of any SFINAE friendly. Also, make sure that doxygen puts classes in the right headers. 2018-01-30 13:04:15 -07:00
Steven Watanabe
e4d544ac12 Remove incorrect test 2018-01-23 11:31:47 -07:00
Steven Watanabe
56a10d549e Implement move assignment. Fixes #12. 2017-03-30 10:20:47 -06:00
Steven Watanabe
f2502d3ca8 Add some compile-fail tests for rvalue-references to match the existing tests for references. Part of this was originally supplied by Deniz Bahadir. I cleaned it up slightly and reviewed the test suite for similar missing test cases. 2017-03-24 10:40:18 -06:00
Steven Watanabe
15175c2740 Make check_match work with nullary functions. It failed to compile with relaxed, because the base case was incorrect. Reported by Deniz Bahadir in #10. 2017-03-24 08:58:52 -06:00
Steven Watanabe
98f02befbf Suppress warnings for msvc and gcc. 2016-02-26 14:06:35 -07:00
Steven Watanabe
76743c0c6f Add semicolon which Boost.Test now seems to require. 2015-10-20 09:24:12 -06:00
Steven Watanabe
10139bc02e Implement dynamic_any_cast which allows conversions between arbitrary any types. 2015-03-07 21:10:52 -07:00
Steven Watanabe
f4b021b895 Handle construction from rvalue references.
[SVN r86085]
2013-09-30 20:04:18 +00:00
Steven Watanabe
a87cabe7a2 Fix wrong test case.
[SVN r83777]
2013-04-06 14:49:03 +00:00
Steven Watanabe
51580300da Prevent the move constructor from being elided. This should fix the remaining clang failures in this test case.
[SVN r83616]
2013-03-27 22:03:37 +00:00
Steven Watanabe
031aa2370e test_class& is not const.
[SVN r83615]
2013-03-27 21:51:36 +00:00
Steven Watanabe
d9ced95910 Test that overloading on the constness of this works.
[SVN r83490]
2013-03-18 17:29:43 +00:00
Steven Watanabe
cd93ec2f63 Fix print_sequence example
[SVN r83337]
2013-03-06 22:29:44 +00:00
Steven Watanabe
fe4b04b13e handle rvalue references in BOOST_TYPE_ERASURE_FREE
[SVN r83332]
2013-03-06 18:46:56 +00:00
Steven Watanabe
f271e34a3e Tests for returning references. Fix for returning rv refs.
[SVN r83325]
2013-03-05 22:24:25 +00:00
Steven Watanabe
d0ea9aee73 Handle rvalue references for construction.
[SVN r83321]
2013-03-05 21:27:18 +00:00
Steven Watanabe
355acc41af Test const member functions w/ rvalues as well.
[SVN r83254]
2013-03-02 22:14:01 +00:00
Steven Watanabe
dded71555b Support rvalue anys as arguments to call.
[SVN r83253]
2013-03-02 21:48:27 +00:00
Steven Watanabe
686ce5bfae Rename relaxed_match -> relaxed.
[SVN r83251]
2013-03-02 19:23:44 +00:00
Steven Watanabe
6803718822 Replace deprecated macros.
[SVN r83248]
2013-03-02 18:15:06 +00:00
Steven Watanabe
174e5a8ce3 Implement rvalue refs for BOOST_TYPE_ERASURE_MEMBER.
[SVN r83101]
2013-02-23 16:36:58 +00:00
Steven Watanabe
c7c3b65bdc Initial RValue reference support for arguments.
[SVN r83093]
2013-02-23 02:23:58 +00:00
Steven Watanabe
946e202a26 Handle const correctly for free functions.
[SVN r81314]
2012-11-13 00:43:59 +00:00
Steven Watanabe
1584d0a9cc Add is_empty.
[SVN r80968]
2012-10-12 20:25:51 +00:00
Steven Watanabe
dd6691e04f Handle array-to-pointer decay.
[SVN r80967]
2012-10-12 18:55:42 +00:00
Steven Watanabe
6416e80b87 Enable implicit conversion to any.
[SVN r80962]
2012-10-11 21:33:49 +00:00
Steven Watanabe
f2cbb059ef Handle conversion sequence rank for param.
[SVN r80914]
2012-10-09 21:39:19 +00:00
Steven Watanabe
b7b8490a80 Initial implementation of param.
[SVN r80909]
2012-10-08 21:59:50 +00:00
Steven Watanabe
b28951b879 Add metafunction is_subconcept.
[SVN r80882]
2012-10-06 00:08:26 +00:00
Steven Watanabe
649ec18acd Implement BOOST_TYPE_ERASURE_FREE matching BOOST_TYPE_ERASURE_MEMBER.
[SVN r80601]
2012-09-19 22:46:36 +00:00
Steven Watanabe
cc33c00646 Require the type to match for the static_binding constructor.
[SVN r79858]
2012-08-03 18:18:42 +00:00
Steven Watanabe
381f7f90bc Initial support for empty anys.
[SVN r79190]
2012-06-30 20:07:23 +00:00
Steven Watanabe
8c3bb75e47 Add a macro BOOST_TYPE_ERASURE_MEMBER to simplify defining concepts for member functions.
[SVN r79182]
2012-06-29 23:45:29 +00:00
Steven Watanabe
bc590784f0 Handle assignment of any references.
[SVN r78465]
2012-05-14 03:44:19 +00:00
Steven Watanabe
4302523423 Avoid silently passing through unbound placeholders. This fixes an accepts invalid error demonstrated by the test case.
[SVN r78461]
2012-05-13 20:48:45 +00:00
Steven Watanabe
90b8c3576a Add tests for binding and fix some bugs that this exposed.
[SVN r78460]
2012-05-13 19:58:42 +00:00
Steven Watanabe
e16ab776c6 Handle same_type in conversions.
[SVN r78459]
2012-05-13 18:20:31 +00:00
Steven Watanabe
6096b83a5e Handle duplicate uses of same_type.
[SVN r78458]
2012-05-13 17:48:06 +00:00
Steven Watanabe
12798afa49 Initial implementation of same_type. Start rewriting iterators to use deduced.
[SVN r78443]
2012-05-13 00:17:07 +00:00
Steven Watanabe
674a123d48 Initial handling for associated types.
[SVN r78430]
2012-05-12 03:56:07 +00:00
Steven Watanabe
eacd0528c3 Import type_erasure
[SVN r78429]
2012-05-12 02:37:24 +00:00