2
0
mirror of https://github.com/boostorg/variant.git synced 2026-01-19 04:42:16 +00:00

735 Commits

Author SHA1 Message Date
Nikita Kniazev
3e93fd428c followup to recursive_wrapper pointer stealing
- Added macro to switch to the old behavior
  - Added valueless_recursive method
  - Removed nullptr and exchange

TODO:
  - Docs
2019-02-08 20:19:21 +03:00
Nikita Kniazev
1364d3ff5f recursive_wrapper move constructor pointer stealing
Instead of allocating a new object just steal the pointer from the other
recursive_wrapper. It is much cheaper and allows to mark the move constructor
noexcept (allows variant to move the object without backup copying it).
2019-01-31 21:15:10 +03:00
Antony Polukhin
d069511e31 Update copyright boost-1.70.0.beta1 2019-01-17 13:00:51 +03:00
Antony Polukhin
ba0746fc9d Temporary disable test for issue #53 2019-01-08 14:18:24 +03:00
Antony Polukhin
46d8b92f73 Increase fetch depth to avoid issues with submodules 2019-01-08 01:01:52 +03:00
Antony Polukhin
b4acbdf3e8 Add test from #53 2019-01-07 23:32:07 +03:00
Antony Polukhin
3850c195d6 Merge pull request #57 from Kojoley/remove-edg-no-sfinae
Remove EDG 3.2 workaround
2019-01-07 23:03:07 +03:00
Nikita Kniazev
06b643df31 Cleanup includes 2019-01-06 22:15:45 +03:00
Nikita Kniazev
3c5a67e48f Removed EDG 3.2 workaround
EDG 3.2 is pretty old (the workaround added 16 years ago).
2019-01-06 20:31:18 +03:00
Antony Polukhin
500778bd7b Merge pull request #56 from Kojoley/remove-no-void-returns-workaround
Removed NO_VOID_RETURNS workaround
2019-01-06 09:25:26 +03:00
Nikita Kniazev
c4370b2da2 Removed NO_VOID_RETURNS workaround
The workaround is obsolete, from Boost.Config it looks like it was used for
very old EDG2.4, VC6, and other compilers in VC6 emulation mode.
2019-01-06 00:42:58 +03:00
Antony Polukhin
6900641f4f Change coveralls url 2019-01-05 22:37:45 +03:00
Antony Polukhin
7c1171a8dd Run CI on primary repo, rather than on the fork 2019-01-05 22:27:01 +03:00
Antony Polukhin
a0ad527fce Merge pull request #55 from Kojoley/fix-apply_visitor-decltype-result_type-deduction
Fixed visitor result type deduction at rvalue ref operators
2019-01-05 20:15:57 +03:00
Antony Polukhin
9af72f37bc Update variant_visit_test.cpp 2019-01-05 20:15:22 +03:00
Nikita Kniazev
4b37f9b804 Fixed visitor result type deduction at rvalue ref operators 2019-01-05 19:54:20 +03:00
Antony Polukhin
4addd1022a Minor changes for the build system 2018-12-23 16:34:00 +03:00
Antony Polukhin
283bff8e21 Merge branch 'develop' into ldionne-visit_deduce 2018-12-23 15:32:54 +03:00
Antony Polukhin
7d865cc369 CI fixes 2018-12-23 12:11:34 +03:00
Antony Polukhin
1725a7f2a1 build only in release mode on some platforms in CI 2018-12-23 09:43:33 +03:00
Antony Polukhin
2cd28cdd9c Replace boost/test/minimal.hpp from Boost.Test with boost/core/lightweight_test.hpp 2018-12-22 21:35:48 +03:00
Antony Polukhin
9b13f1cb11 Fix test for GCC 4.7 and 4.6 2018-12-15 17:10:47 +03:00
Antony Polukhin
edfb83b342 ci update 2018-12-14 11:57:21 +03:00
Louis Dionne
1c4d882685 Rewrite the deduction of visitor return type
This avoids using boost::declval inside evaluated contexts, which is invalid
and will actually be diagnosed by compilers [1] when the type used inside
boost::declval has internal linkage (such as an anonymous namespace).

[1]: https://bugs.llvm.org/show_bug.cgi?id=35842
2018-11-15 18:55:58 -05:00
Antony Polukhin
4a448b2bf7 Fix unused parameter warnings boost-1.69.0-beta1 boost-1.69.0 2018-10-09 11:50:45 +03:00
Antony Polukhin
50e7df744a Add missing BOOST_SYMBOL_VISIBLE to the bad_visit exception type 2018-09-18 22:41:48 +03:00
Antony Polukhin
e5a75bb8e1 Revert "Specialize std::hash for boost::variant. Fixes #49"
This reverts commit d972192e54.
2018-08-12 20:56:40 +03:00
Antony Polukhin
d972192e54 Specialize std::hash for boost::variant. Fixes #49 2018-08-12 20:36:12 +03:00
Antony Polukhin
98b5d42e6d Do substitute function arguments on compilers with variadic templates support (more fixes for the #42) boost-1.68.0 boost-1.67.0 2018-02-21 23:10:25 +03:00
Antony Polukhin
b8149a3a77 Tests and minor fixes for #42 2018-02-20 22:20:24 +03:00
Antony Polukhin
65477fa1ae Merge pull request #46 from Kojoley/fix-variadic-substitute
Fixed variadic substitute
2018-02-20 21:54:32 +03:00
Antony Polukhin
3f849aae1f Merge pull request #45 from Kojoley/patch-1
boost/math/common_factor_ct.hpp is deprecated
2018-02-20 21:53:24 +03:00
Nikita Kniazev
b91d4aa40b Fixed variadic substitute 2018-02-17 21:42:31 +03:00
Nikita Kniazev
9dc4f7d697 boost/math/common_factor_ct.hpp is deprecated 2018-02-17 20:49:48 +03:00
Antony Polukhin
c11d5a3365 Merge pull request #44 from DanielaE/fix/disambiguate-variant
disambiguate class variant.
2018-02-01 23:24:19 +03:00
Daniela Engert
8b073bc92f disambiguate class variant.
When compiled with C++17 features enabled, class variant is defined in both namespace 'std' and namespace 'boost'.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2018-01-26 17:50:49 +01:00
Antony Polukhin
30f57614d3 Merge pull request #40 from paweldac/develop
Perfect forwarding for passing visitor in apply_visitor.
2018-01-23 10:39:28 +03:00
Antony Polukhin
8c043e1135 Merge pull request #41 from awulkiew/patch-2
Add missing include in apply_visitor_binary.hpp
boost-1.66.0
2017-11-28 20:04:22 +03:00
Adam Wulkiewicz
6f66a90b47 Add missing include in apply_visitor_binary.hpp
For boost::is_lvalue_reference.
2017-11-20 19:50:41 +01:00
Pawel Dac
33784034b7 Perfect forwarding for passing visitor in apply_visitor.
Allows to catch Visitor&&, Visitor& and const Visitor&.

Removed apply_visitor with const Visitor& since it was catching inlined Visitors&&.
Passing const Visitor to result_wrapper resulted in compilation error when Visitor was mutable.
2017-11-07 23:44:43 +01:00
Antony Polukhin
7a756bc773 Updated apply_visitor docs 2017-11-05 16:33:30 +03:00
Antony Polukhin
b0852f6e60 Fix test, add copyright and minor code style fix_ 2017-10-25 23:16:24 +03:00
Antony Polukhin
85416b5182 Test fixes 2017-10-25 10:06:37 +03:00
Antony Polukhin
2d09012977 Always include enable_if in apply_visitor_binary 2017-10-24 09:04:31 +03:00
Antony Polukhin
6caaa65563 Fixes for function ref quallifires usage 2017-10-22 22:25:54 +03:00
Antony Polukhin
bdccd8d90e Merge pull request #1 from diplay/universal-reverence-visitable
Universal reference visitables
2017-10-18 09:09:57 +03:00
diplay
f132ca7591 minor fix test 2017-10-17 13:11:05 +03:00
diplay
be54a19e1b mixed tests 2017-10-17 13:01:36 +03:00
diplay
f87445832e change typename template parameter to bool 2017-10-17 11:43:44 +03:00
diplay
28f8707515 compilation conditions for multivisitor lambda tests 2017-10-13 21:53:42 +03:00