Commit Graph

102 Commits

Author SHA1 Message Date
Andrzej Krzemienski
16023fe934 Added test for converting optional ref assignment 2015-01-21 22:00:10 +01:00
Andrzej Krzemienski
f229257f30 You can now manually disable move semantics.
This may be useful in MSVC to work around a bug described in Trac #10399
2015-01-21 15:03:17 +01:00
Andrzej Krzemienski
726b227aa9 operator<< improvements 2015-01-21 00:10:51 +01:00
Andrzej Krzemienski
cc17103070 tie tests still buggy 2015-01-17 09:21:36 +01:00
Andrzej Krzemienski
c12beb8991 test cleanup 2015-01-16 22:19:00 +01:00
Andrzej Krzemienski
2437f9cb4c testing swap() in a separate file 2015-01-16 19:16:12 +01:00
Andrzej Krzemienski
eed1b6ea33 fixing bug in tests: not accounting for copy elision 2015-01-16 14:18:44 +01:00
Andrzej Krzemienski
67c7e21b4b Migration to lightweight_test continues 2015-01-15 22:46:34 +01:00
Andrzej Krzemienski
a8a6be013f More tests migrated to core/minimal_test 2015-01-13 23:17:23 +01:00
Andrzej Krzemienski
35eaec5a52 Doc: added release notes section 2015-01-12 17:37:15 +01:00
Andrzej Krzemienski
9e3a4a9b7b finished dividing optional ref tests 2015-01-08 11:33:58 +01:00
Andrzej Krzemienski
cf665bc3f7 More fine grained optional ref assign tests 2015-01-07 18:39:58 +01:00
Andrzej Krzemienski
a2268d78b4 more optional ref tesst
this breaks on msvc, but that only reveals the problems that were there anyway.
2014-12-10 23:10:07 +01:00
Andrzej Krzemienski
26ab338c83 Removed redundant tests 2014-12-06 23:06:49 +01:00
Andrzej Krzemienski
0818b0a25c Fixed noexcept tests, added opt ref tests 2014-12-06 23:03:39 +01:00
Andrzej Krzemienski
4df589686c refactoring optional ref tests 2014-12-01 18:03:46 +01:00
Andrzej Krzemienski
1e2aed8276 unit test improvements
I have split tests for conversions from uptional<U> and from U to optional<T>.
I have split the optional refs tests that are expected to pass on all compilers.
I started using lightweight_test instead of Boost.Test (now only in some files).
2014-11-29 22:51:45 +01:00
Andrzej Krzemienski
0d06d66f5c Improvement to "cout << none" implementation 2014-11-24 22:53:59 +01:00
Jürgen Hunold
1d3446304b Add operator<< for boost::none 2014-11-24 15:38:24 +01:00
Andrzej Krzemienski
53e53171c4 none_t is no loner constructible from literal 0
This caused problems because:
optional<T> o = 0;
always worked. But often it would create an uninitialized optional.
2014-11-22 01:18:25 +01:00
Andrzej Krzemienski
18b8c4bb18 Catching up with N4078 2014-06-28 00:31:36 +02:00
Andrzej Krzemienski
4cbb67e505 Cleaner handling of explicit U to T conversions 2014-06-20 11:38:57 +02:00
Andrzej Krzemienski
d70114b3dc Added func value_or_eval() 2014-06-18 16:42:48 +02:00
Andrzej Krzemienski
31c9119266 value_or() requires that U is convertible to T
Due to Vladimir Batov.
2014-06-14 22:49:37 +02:00
Andrzej Krzemienski
a4e507077e More tests on emplace() 2014-06-06 23:40:45 +02:00
Andrzej Krzemienski
fdc98d17ca Added limited emplace() for older compilers 2014-06-06 23:24:43 +02:00
Andrzej Krzemienski
f99618f09b Added ref-qualifiers to some accessors 2014-06-03 23:07:19 +02:00
Andrzej Krzemienski
2e583aaf30 Fixed code, updated docs, added emplace() 2014-06-03 17:36:18 +02:00
Andrzej Krzemienski
22baf1dd09 Fixed bug in test on compiler with no rvalue refs 2014-05-24 13:44:07 +02:00
Andrzej Krzemienski
3984c9f9a1 Added function value_or() 2014-05-23 16:38:42 +02:00
Andrzej Krzemienski
75271b73a8 Member fun value() that throws on uninitialized 2014-05-22 23:32:49 +02:00
Andrzej Krzemienski
f94846ccc5 Improved documentation. Added some noexcept. 2014-05-07 17:07:12 +02:00
Andrzej Krzemienski
6a790e0c97 Added a test that tests the compiler if references are bound correctly. Also added the second copyright notice. 2014-05-05 19:08:11 +02:00
Andrzej Krzemienski
c51f3e810b The (in)equality comparison with boost::none does not require that T be EqualityComparable 2014-04-29 22:59:06 +02:00
Andrzej Krzemienski
d59f47156f Merge branch 'feature/move-semantics' into develop
Conflicts:
	doc/html/index.html
	include/boost/optional/optional.hpp
	test/Jamfile.v2
2014-04-29 01:24:10 +02:00
Andrzej Krzemienski
c9f1422560 Updated documentation; fixed optional::swap 2014-04-29 01:06:14 +02:00
Andrzej Krzemienski
01b22a0ff0 Added tests for move conversion between optional<T> and optional<U> 2014-04-28 16:51:49 +02:00
Andrzej Krzemienski
3816143646 Disabled assignment and construction from rvalue references in optional<const T&> 2014-04-28 15:48:55 +02:00
Andrzej Krzemienski
0e61751fab Added more tests for move operations, fixed bugs, disabled optional<T&&>. 2014-04-26 23:24:21 +02:00
Marcel Raad
c7cf80e5df Use BOOST_EXPLICIT_OPERATOR_BOOL for optional
I often have the problem that when I change a std::wstring to boost::optional<std::wstring> and the variable is used as a parameter with Boost.Format, the result silently changes from the string contents to "1".

This change prevents implicit conversion to bool if the compiler supports explicit conversion operators.
2014-04-26 15:26:37 +02:00
Andrzej Krzemienski
5c69bac12f Fixed unit tests (still need to add more unit tests for move semantics) 2014-04-26 00:22:39 +02:00
Andrzej Krzemienski
a26d11be87 Partially added move semantics (tests are still failing) 2014-04-22 22:36:19 +02:00
Steven Watanabe
16657e5e1d Try to fix VC8.
[SVN r83445]
2013-03-15 18:24:41 +00:00
Steven Watanabe
ff48f2b3a0 Work around msvc bug when explicitly destroying a class with a virtual base. Fixes #5940.
[SVN r82915]
2013-02-15 19:22:34 +00:00
Andrey Semashev
646488e0e2 operator>> behavior changed slightly so that the stream is not accessed when unrecognized character sequence is detected.
[SVN r67184]
2010-12-12 11:35:19 +00:00
Fernando Cacciola
425d141cbf Test for fixed extraction operator for empty optinals
[SVN r64205]
2010-07-20 18:20:01 +00:00
Troy D. Straszheim
066dd6f345 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
4e628ed4a6 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Jeremiah Willcock
fea89e84f3 Fixed most tab and min/max issues from trunk inspection report
[SVN r53141]
2009-05-20 19:19:00 +00:00
Michael A. Jackson
e7d7b014d2 Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00