100 Commits
Author SHA1 Message Date
Peter Dimov d34658f4c8 Document operator<< for monostate 2022-01-31 19:19:49 +02:00
Peter Dimov 5e2bce1baa Add operator<< for monostate 2022-01-31 17:55:26 +02:00
Peter Dimov 573ef77382 Move unsigned ix_ after the elements to avoid need to adjust rdi (closes #30) 2021-12-09 21:28:35 +02:00
Peter Dimov f6cad272d4 Add msvc-14.0 to GHA 2021-12-09 19:59:01 +02:00
Peter Dimov 3fc7540733 Only define operator<< when all contained types are streamable (refs #31) 2021-12-09 18:39:03 +02:00
Peter Dimov e4b4b3f02b Extend msvc-14.2 workaround to 14.3 2021-10-29 02:18:23 +03:00
Peter Dimov 44d38c4111 Enable syntax highlighting 2021-10-28 23:23:13 +03:00
Peter Dimov 1ebfb3b689 Add msvc-14.3 to ci.yml 2021-10-28 23:22:20 +03:00
Peter Dimov 8af1fbde8e Update cmake_subdir_test/CMakeLists.txt 2021-09-21 14:52:38 +03:00
Peter Dimov 26ce33597d Regenerate CMakeLists.txt 2021-09-21 14:45:20 +03:00
Peter Dimov c89713b978 Add CMake tests to ci.yml 2021-09-21 14:31:47 +03:00
Peter Dimov 10c441c8d7 Update appveyor.yml 2021-09-15 15:11:54 +03:00
Peter Dimov 09ec260780 Document operator<< 2021-09-15 03:53:13 +03:00
Peter Dimov 2da13befd7 Work around mysterious errors with gcc, msvc-14.1, and clang-cl 2021-09-15 03:28:29 +03:00
Peter Dimov e668c099ce Add operator<< for variant 2021-09-15 02:51:11 +03:00
Peter Dimov aebcb9792d Update documentation of visit_by_index 2021-09-15 02:00:33 +03:00
Peter Dimov 8fd9f830a9 Add proper type deduction to visit_by_index 2021-09-15 01:30:09 +03:00
Peter Dimov ed4bebff3d Document visit_by_index 2021-09-14 21:32:57 +03:00
Peter Dimov ad06c9b923 Add visit_by_index 2021-09-14 21:06:01 +03:00
Peter Dimov de4eb8b6d2 Update README.md 2021-09-11 19:47:34 +03:00
Peter Dimov 4d69db1441 Extend g++-10 workarounds to 11 2021-09-11 19:23:39 +03:00
Peter Dimov 095d9770c4 Update ci.yml 2021-09-11 18:36:43 +03:00
Peter Dimov cca476fbbc Update documentation 2021-09-11 18:29:17 +03:00
Peter Dimov c76af4d3cf Update README.md 2021-09-11 18:26:28 +03:00
Peter Dimov 1af7b165cf BOOST_VARIANT2_CX14_ASSERT must be empty under C++11 2021-09-11 18:22:46 +03:00
Peter Dimov 49bff72be0 Define and use a helper macro BOOST_VARIANT2_CX14_ASSERT in constexpr functions 2021-09-11 18:11:17 +03:00
Peter Dimov 59780ba08e Only assert when C++14 2021-09-11 18:00:29 +03:00
Peter Dimov edd70cfd66 Update ci.yml 2021-09-11 17:43:05 +03:00
Peter Dimov 86c2782dff Update documentation 2021-09-11 17:39:55 +03:00
Peter Dimov dce8174550 Make unsafe_get public 2021-09-11 17:29:21 +03:00
Peter Dimov 9d40bc80f1 Use BOOST_ASSERT instead of assert 2021-09-11 17:23:29 +03:00
Peter Dimov be6ddf9fdc Add boost/variant2.hpp 2021-09-11 17:19:09 +03:00
Peter Dimov 4153a535a0 Update .github/workflows 2021-04-19 20:37:12 +03:00
Peter Dimov f374ad68a3 Add -DBUILD_TESTING=ON to .yml files; it's not default anymore 2021-03-19 04:18:08 +02:00
Peter Dimov 3bc9a57c9b Merge branch 'feature/issue-26' into develop 2021-03-13 18:23:39 +02:00
Peter Dimov 3ca95a65df Use boost::hash in hash_value, not std::hash (closes #27) 2021-03-13 05:08:03 +02:00
Peter Dimov ae1f72671e Add test for types supported by boost::hash, but not by std::hash 2021-03-13 04:50:01 +02:00
Peter Dimov a2dab8c7d3 Refactor detail::hash_value_L 2021-03-13 04:10:41 +02:00
Peter Dimov f39a71ed2f Merge branch 'feature/issue-26-nofix' into feature/issue-26 2021-03-13 01:09:46 +02:00
Peter Dimov 06dde96400 Merge branch 'develop' into feature/issue-26-nofix 2021-03-13 01:09:17 +02:00
Peter Dimov 8be0a4a5fe Update copyright 2021-03-12 23:42:32 +02:00
Peter Dimov 90cda5339f Disable U&& constructor for derived types 2021-03-12 23:40:14 +02:00
Peter Dimov afb0aafd64 Change clangs to bionic 2021-03-12 20:18:24 +02:00
Peter Dimov f586dc8848 Add test for inherited constructors (refs #26) 2021-03-12 20:15:09 +02:00
Peter Dimov 20b9175932 Add cxxstd=latest to Appveyor 2021-03-08 04:04:35 +02:00
Peter Dimov fb3ce863ff Add MSVC workaround for monospace constexpr (refs #25) 2021-03-08 03:26:40 +02:00
Peter Dimov 8ec0bf448a Add monospace relational tests (refs #25) 2021-03-08 03:01:21 +02:00
Peter Dimov 6d19e6be68 Update revision history 2021-03-07 00:51:28 +02:00
Peter Dimov d8552b23ae UBSan on clang 7 is broken on Ubuntu 2021-03-01 06:35:38 +02:00
Peter Dimov f44aba09a2 Update .travis.yml 2021-03-01 00:26:43 +02:00
Peter Dimov 99cc1db385 Fix documentation for emplace effects 2021-01-25 03:49:42 +02:00
Peter Dimov 6d848c5af6 Update GCC workarounds in constexpr in-place construct tests 2021-01-25 03:44:24 +02:00
Peter Dimov 3c9f4e56bf Fix visit codegen regression when NDEBUG is not defined 2021-01-24 17:27:24 +02:00
Peter Dimov 3015e56bcb GCC bug 63707 has been fixed for GCC 11 2021-01-23 20:36:12 +02:00
Peter Dimov 7c37053950 Merge branch 'develop' into feature/double-opt 2021-01-13 05:06:00 +02:00
Peter Dimov 60995edb41 Remove g++ 4.7 from GHA 2021-01-13 05:01:44 +02:00
Peter Dimov 84a2c175d0 Use variant=release for variant_visit_r under g++/windows 2021-01-13 04:44:56 +02:00
Peter Dimov ea3268feb4 Add .github/workflows 2021-01-13 04:19:15 +02:00
Peter Dimov 6de876954a Merge branch 'develop' into feature/double-opt 2021-01-13 02:32:32 +02:00
Peter Dimov efc1d5acca Add more tests to variant_emplace_index.cpp 2021-01-13 02:32:05 +02:00
Peter Dimov 453b00dec8 Use (i+1)*2+j for the internal index in the double-buffered case, to avoid branches 2021-01-13 02:10:12 +02:00
Peter Dimov c6186e0a95 Merge pull request #22 from eldiener/develop
Add "cxxstd" json field. The "cxxstd" json field is being added to ea…
2020-12-16 18:45:01 +02:00
Peter Dimov 93b8618e94 Update maintainer e-mail 2020-12-12 01:08:09 +02:00
Peter Dimov 1ebc29aa02 Remove boost_install call from CMakeLists.txt 2020-06-11 17:21:57 +03:00
Peter Dimov d3db874762 Document visit<R> 2020-06-03 18:01:57 +03:00
Peter Dimov 5586ebaa64 Add support for visit<R> 2020-06-03 17:00:13 +03:00
Peter Dimov bede3777a8 Add test for nullary visit 2020-06-03 14:29:24 +03:00
Peter Dimov b302dd5912 Update changelog 2020-05-22 17:57:29 +03:00
Peter Dimov 2ad6fed07a Update revision history 2020-05-10 19:34:12 +03:00
Peter Dimov 84ea994325 Add specialization for variant_storage_impl<mp_false, ...> 2020-05-09 19:56:27 +03:00
Peter Dimov 465e5bac3d Add specialization for variant_storage_impl<mp_true, ...> to reduce instantiations 2020-05-09 18:14:12 +03:00
Peter Dimov 41829b0fb1 test/variant_many_types: cosmetic fixes 2020-05-09 17:55:42 +03:00
Peter Dimov b57d75ff80 Merge branch 'develop' into feature/many-types 2020-05-09 14:41:29 +03:00
Peter Dimov 03019860df Fix gcc-10 version check 2020-05-09 05:10:28 +03:00
Peter Dimov 8ec4720d2d Merge branch 'feature/clang-10' into feature/gcc-10 2020-05-09 05:09:11 +03:00
Peter Dimov 75f574fc48 Move warning suppression before the includes 2020-05-09 04:42:27 +03:00
Peter Dimov 1d79adfca0 Add gcc-10 to Travis 2020-05-09 04:32:11 +03:00
Peter Dimov fa92e40b35 Disable failing constexpr tests on g++ 10.1 2020-05-09 04:31:26 +03:00
Peter Dimov a403f82691 Disable -Wdeprecated-volatile 2020-05-09 03:57:27 +03:00
Peter Dimov a7d0da59ad Add clang-10 to Travis 2020-05-09 03:50:20 +03:00
Peter Dimov fa872cb835 test/variant_many_types: add a constructor to Y 2020-05-08 23:23:19 +03:00
Peter Dimov 93204676f5 Add test/variant_many_types 2020-05-08 22:22:49 +03:00
Peter Dimov 772ef0d312 Support derived types in visit 2020-05-06 20:11:03 +03:00
Peter Dimov f3b3b533aa Remove local mp_power_set implementation, as it's now in mp11 2020-03-20 02:26:01 +02:00
Peter Dimov 4b60dee4b6 Avoid gcc warning 'base class should be explicitly initialized in copy constructor' 2020-02-01 01:18:40 +02:00
Peter Dimov 76c67c9b21 Use <warnings>extra instead of all 2020-01-31 23:59:00 +02:00
Peter Dimov 308bd731a5 Update documentation 2020-01-23 21:17:49 +02:00
Peter Dimov 719c43316f Disable is_copy_constructible tests on gcc 4.x 2020-01-23 19:13:11 +02:00
Peter Dimov d6680df4e5 Add a test case to test/variant_copy_construct 2020-01-23 18:33:39 +02:00
Peter Dimov 8cf72527a6 Revert incorrect changes in test/variant_trivial 2020-01-23 18:09:01 +02:00
Peter Dimov b649a39776 Check std::is_copy_constructible in test/variant_copy_construct 2020-01-23 17:38:03 +02:00
Peter Dimov 37f6efab5d Fix typo 2020-01-23 17:34:36 +02:00
Peter Dimov 5259bdd5fc Disable move triviality tests on libstdc++ 4.x 2020-01-23 17:22:45 +02:00
Peter Dimov 9964e77dd2 Add clang++/trusty to Travis (libstdc++ 4.8) 2020-01-23 15:50:45 +02:00
Peter Dimov 57ab36bd95 Add test/variant_special 2020-01-23 15:24:32 +02:00
Peter Dimov fac5992e45 Add test/variant_trivial 2020-01-23 03:53:05 +02:00
Peter Dimov 972280e59f Remove commented-out variant_copy_base 2020-01-23 01:08:32 +02:00
Peter Dimov ef2ef292b9 The msvc-14.0 workarounds are no longer needed 2020-01-22 20:14:11 +02:00
Peter Dimov 3b2fb1a48a Split variant_copy_base into separate cc/ca/mc/ma bases; avoids multiple inheritance, which is a penalty in the MS ABI 2020-01-22 19:59:59 +02:00
Peter Dimov 4f81882bfd Explicitly disable move constructor when needed 2020-01-22 18:30:36 +02:00