Commit Graph

30 Commits

Author SHA1 Message Date
Andrzej Krzemienski
5182f7f30f Added has_value() 2018-03-24 00:04:15 +01:00
Andrzej Krzemienski
9273fb435f removed Boost.Test dependency 2015-10-20 21:34:38 +02:00
Andrzej Krzemienski
2437f9cb4c testing swap() in a separate file 2015-01-16 19:16:12 +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
18b8c4bb18 Catching up with N4078 2014-06-28 00:31:36 +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
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
Niels Dekker
3ebabcb2d8 Fixed syntax of optional_swap_should_use_default_constructor and swap template specializations that I added 2 days ago (changeset [45265]). Was accepted by MSVC, but rejected by other compilers.
[SVN r45295]
2008-05-12 13:29:52 +00:00
Niels Dekker
63f6e7f45e Added more optional::swap tests, especially on self swap, on specializing boost::swap for optional<T>, and on swapping optional<T> when T is a template class.
[SVN r45265]
2008-05-10 14:53:51 +00:00
Niels Dekker
1afed544db Added unit tests, testing optional<T> swap improvements of revision [44766]
[SVN r44767]
2008-04-25 16:52:34 +00:00
Fernando Cacciola
a690c8e7a2 Merged changests from RC_1_34_0 - base rev 33417
[SVN r40704]
2007-11-02 22:55:49 +00:00
Fernando Cacciola
734e5b5283 Some additional functions added to optional (being new there won't be regressions)
[SVN r34411]
2006-06-26 18:01:38 +00:00
Fernando Cacciola
04bec76068 Fixed the converting assignment bug in optional<>
Fixed the usage of 'None' in converter.h, which is declared as a macro in X11/X.h


[SVN r32531]
2006-02-03 19:56:03 +00:00
Fernando Cacciola
9a0013d668 Optional's Assignment fixed
[SVN r28412]
2005-04-22 13:28:34 +00:00
Rene Rivera
46fafdb7c9 Fix outdated reference to boost/detail/none.hpp, to current boost/none.hpp.
[SVN r23439]
2004-07-11 16:40:21 +00:00
Fernando Cacciola
0109fabef4 Fixed test for bcc5.6.4 weak overload resolution
[SVN r22138]
2004-02-02 15:40:12 +00:00
Fernando Cacciola
7bd27ccace Some headers were moved from "utility" to "detail"
[SVN r20990]
2003-11-28 15:33:07 +00:00
Fernando Cacciola
38c609e126 New License
[SVN r20607]
2003-11-03 02:59:08 +00:00
Fernando Cacciola
e8a91e1ce3 Compiler compatibility fixes
[SVN r20548]
2003-10-29 15:46:28 +00:00
Fernando Cacciola
faa3c1962a Tests updated to reflect 1.15 changes
[SVN r20512]
2003-10-28 00:11:49 +00:00
Fernando Cacciola
d888dd2454 Additional tests
[SVN r19996]
2003-09-10 15:41:37 +00:00
Fernando Cacciola
ac6f68cf80 vc7.0 compatibility fix
[SVN r17099]
2003-01-30 22:13:22 +00:00
Fernando Cacciola
196b8e7ea0 Additional portability fixes (for VC6.0,VC7.0 and Intel C++ 7.0)
[SVN r17082]
2003-01-29 19:48:43 +00:00
Fernando Cacciola
4456cc1660 MSVC templated constructor/assignment problem fixed.
[SVN r17062]
2003-01-28 14:38:00 +00:00
Fernando Cacciola
9461f09cb8 MSVC6.0 Fixes
[SVN r17049]
2003-01-27 13:54:57 +00:00
Fernando Cacciola
716dbf8c66 compile-file cases added to the test suite
[SVN r17029]
2003-01-24 15:32:11 +00:00
Fernando Cacciola
ea296efa2f Jamfile added
[SVN r17009]
2003-01-23 16:29:30 +00:00
Fernando Cacciola
6277c98514 Initial versions
[SVN r16995]
2003-01-22 17:54:11 +00:00