237 Commits

Author SHA1 Message Date
Andrzej Krzemienski
9b1f8033eb Merge branch 'develop' of https://github.com/RobertLeahy/optional-2 into RobertLeahy-develop 2020-04-06 00:42:05 +02:00
Edward Diener
78d6563bce Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-30 14:04:35 -04:00
Andrzej Krzemienski
d4a4a5b6ad fixed C++98-incompatible unit test 2020-01-16 22:31:23 +01:00
Robert Leahy
9581804efa GCC 4.4.7: boost::in_place & Assignment
Assigning a boost::in_place_factory to a boost::optional templated on a
type which was trivially copyable failed to compile under GCC 4.4.7.
2019-12-23 11:24:39 -05:00
Robert Leahy
d07ae78901 Tests Pass in GCC 4.4.7
Several tests either did not compile or failed upon running when using
GCC 4.4.7.
2019-12-23 11:24:39 -05:00
Andrzej Krzemienski
13bc27698e Add test case for fix to issue #78 2019-12-20 00:18:52 +01:00
Andrzej Krzemienski
545fd9a72f docs and tests fixes 2018-11-08 18:46:03 +01:00
Andrey Semashev
2f3cf1ca84 Added a test to verify that boost::optional copy constructor does not invoke T's template constructors. 2018-11-04 17:54:57 +03:00
Andrzej Krzemienski
65bb040db8 tests: added two test cases from GitHub issues 2018-10-29 21:47:09 +01:00
Andrzej Krzemienski
fae2791f45 added test for swapping const opitonals 2018-10-25 00:37:13 +02:00
Andrzej Krzemienski
228b20df82 fixed old implementation (issue #57) 2018-07-12 00:30:47 +02:00
Andrzej Krzemienski
71d797b9ee added implementation and tests of flat_map() 2018-06-28 23:30:47 +02:00
Andrzej Krzemienski
d13623884a hopefully fixed the libstdc++ 4.9 problem (thanks Jonathan) 2018-06-28 02:10:57 +02:00
Andrzej Krzemienski
7320dd54e8 one more test hack macro to check 2018-06-27 22:23:57 +02:00
Andrzej Krzemienski
51a46f95c6 testing clang v. 2018-06-26 00:04:33 +02:00
Andrzej Krzemienski
35ca7c1ff1 added a hack test to check compiler setup 2018-06-25 23:59:19 +02:00
Andrzej Krzemienski
0169460194 fixed tests and maybe std::is_trivially_default_constructible 2018-06-25 22:50:00 +02:00
Andrzej Krzemienski
42445e94aa Fix for C++03 tests for .map() using result_of 2018-06-24 17:12:38 +02:00
Andrzej Krzemienski
250806d029 fixed >> int C++03 templates 2018-06-24 15:22:56 +02:00
Andrzej Krzemienski
51d1bc843d test and doc update for .map() 2018-06-23 20:53:16 +02:00
Andrzej Krzemienski
e47a017009 added o.map() 2018-06-23 18:27:14 +02:00
Andrzej Krzemienski
5182f7f30f Added has_value() 2018-03-24 00:04:15 +01:00
petamas
b832d4c54f Add test for template parameter with member enum T (fails by default on VS2015)
Issue: https://github.com/boostorg/optional/issues/46ű
2018-01-03 10:37:37 +01:00
Andrzej Krzemienski
5b6f4be434 Fix make_optional for rvalues 2017-11-07 23:34:56 +01:00
Andrzej Krzemienski
7541076cf1 fixed defaulted moves on older compilers 2017-11-07 23:34:41 +01:00
Andrzej Krzemienski
40f7c97292 Fixed -Wmaybe-uninitialized 2017-11-07 23:34:37 +01:00
Andrzej Krzemienski
06dea2cb9b Reverted specialization for trivial types
It caused too many problems. I left only specialiation for scalar types.
I will need to devise clever type traits for reconizing trivial types with working constructor.
2017-11-07 23:34:34 +01:00
Vinnie Falco
cbf3cd05af Test case for #43 2017-11-07 23:34:31 +01:00
Andrzej Krzemieński
01ebd2ad7f Added tests for types with deleted default ctor 2017-11-07 23:34:23 +01:00
Vinnie Falco
42c2377a0d Add tc_optional_base test 2017-11-07 23:34:20 +01:00
Andrzej Krzemienski
a7f33f5d6f more defensive checking for trivial types -- avoiding bugs 2017-11-07 23:34:15 +01:00
Andrzej Krzemienski
58f7c2f14a fix bug with defaulted move in msvc 12.0 2017-11-07 23:34:12 +01:00
Peter Dimov
ebef3ed6f7 Try to make the test closer to the failing case in Beast 2017-11-07 23:34:09 +01:00
Peter Dimov
9e0726cee1 Add test for a deleted default constructor 2017-11-07 23:34:07 +01:00
Andrzej Krzemienski
2d2c3c3f6f trivially-copyable optional<T> for trivial T 2017-11-07 23:34:05 +01:00
Kohei Takahashi
61bf382ffa Enable tests that doesn't requires rv-ref. 2017-11-07 23:33:57 +01:00
Andrzej Krzemienski
4fe57f57fa Fix make_optional for rvalues 2017-11-07 23:33:54 +01:00
Andrzej Krzemienski
d73b5110dd corrected the compiler workarounds 2016-11-22 02:35:24 +01:00
Andrzej Krzemienski
b4907c2a51 old compiler workarounds for the previous two fixes 2016-11-20 23:42:41 +01:00
Andrzej Krzemienski
fafb3abb64 Implemented reset syntax: o = {} 2016-11-19 21:14:28 +01:00
Andrzej Krzemienski
7ea2ca6c40 Fix #12563 2016-11-19 14:57:40 +01:00
Andrzej Krzemienski
8d69e99e78 removed hack test, updated copyright 2016-11-06 01:49:53 +01:00
Andrzej Krzemienski
eb9ea1f72d added in_place constructors 2016-10-27 01:08:17 +02:00
Andrzej Krzemienski
63454c11aa unit-tests for optional ref conversion fix 2016-10-06 23:17:20 +02:00
Andrzej Krzemienski
f9324a8790 attempt fix at gcc 5.2 c++03 2016-09-02 01:42:26 +02:00
Andrzej Krzemienski
08076e3964 fixed optional<optional<T>&> case 2016-05-17 00:54:09 +02:00
Andrzej Krzemienski
0755ab7b4e removed warnings from tests 2016-03-08 18:47:48 +01:00
Andrzej Krzemienski
865d94a8d8 fixed interop between opt refs and opt vals 2016-03-06 19:08:25 +01:00
Andrzej Krzemienski
442b27c019 fixed static_assert in a test 2016-02-29 00:56:29 +01:00
Andrzej Krzemienski
d3dda39beb removed 'exploration' test 2016-02-20 21:18:47 +01:00