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
Michael A. Jackson
2af3ec341b
Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
...
[SVN r49510]
2008-11-01 13:15:41 +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
Beman Dawes
f6518df0c4
Get rid of .cvsignore files
...
[SVN r41107]
2007-11-15 15:20:27 +00:00
Fernando Cacciola
05a685b035
Fixed intention in the added binding test
...
[SVN r40860]
2007-11-06 22:21:43 +00:00
Fernando Cacciola
3b5b5d82a0
Added test to ensure proper binding of optional references (in reference to Ticket 1301)
...
[SVN r40707]
2007-11-02 23:41:37 +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
Vladimir Prus
c8e54ef488
Remove V1 Jamfiles
...
[SVN r38516]
2007-08-08 19:02:26 +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
91bdde095d
Non-templated iostreams fix in optional_io
...
Better "illegal conversion" fail test
[SVN r32972]
2006-02-16 20:52:55 +00:00
Vladimir Prus
d3f9e112c4
Update Jamfile.v2
...
[SVN r32761]
2006-02-09 09:50:56 +00:00
Fernando Cacciola
0be943c2f6
Added simple operators << and >> to optional<>
...
[SVN r32533]
2006-02-03 21:39:21 +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
Fernando Cacciola
24c5f92413
In-place factories moved from /detail to /utility
...
New value_initalized tests added
[SVN r25436]
2004-09-27 12:28:21 +00:00
Fernando Cacciola
07a80c1b9b
In-place factories moved from /detail to /utility
...
New value_initalized tests added
[SVN r25313]
2004-09-21 14:54:32 +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
Vladimir Prus
3ca0557a7c
Sync with V1 Jamfile.
...
[SVN r21563]
2004-01-09 11:28:42 +00:00
Fernando Cacciola
44f140f961
Removed obsolete test
...
[SVN r20994]
2003-11-28 15:40:20 +00:00
Fernando Cacciola
943df2a9aa
No longer needed
...
[SVN r20993]
2003-11-28 15:38:57 +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
855d343cd1
Renamed
...
[SVN r20985]
2003-11-28 15:08:12 +00:00
Fernando Cacciola
1fc75ce00e
Renamed (because of the 31 max chars limit)
...
[SVN r20984]
2003-11-28 15:04:23 +00:00
Dave Abrahams
2a85470f49
Simplify and clean up
...
[SVN r20870]
2003-11-19 22:22:02 +00:00
Fernando Cacciola
38c609e126
New License
...
[SVN r20607]
2003-11-03 02:59:08 +00:00
Fernando Cacciola
9adda8450b
VC6 compatibility fixes
...
[SVN r20564]
2003-10-30 14:45:13 +00:00
Fernando Cacciola
65464ceffd
Reference semantics change rolledback (deffered to after 1.31.0)
...
[SVN r20557]
2003-10-30 00:39:34 +00:00
Fernando Cacciola
3b7d49e4aa
*** empty log message ***
...
[SVN r20549]
2003-10-29 15:47:01 +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
Vladimir Prus
18b8685e5d
Fix typo
...
[SVN r20216]
2003-09-30 06:32:06 +00:00
Vladimir Prus
920820c1d0
Add V2 Jamfile
...
[SVN r20212]
2003-09-29 16:40:02 +00:00
Fernando Cacciola
52896b097e
Typed in place construction added
...
[SVN r20070]
2003-09-15 20:28:10 +00:00
Fernando Cacciola
3568ed7d0e
Removed
...
[SVN r19999]
2003-09-10 15:56:14 +00:00
Fernando Cacciola
cd5ccd166b
New tests added
...
[SVN r19998]
2003-09-10 15:53:25 +00:00
Fernando Cacciola
a1d8949039
*** empty log message ***
...
[SVN r19997]
2003-09-10 15:47:00 +00:00
Fernando Cacciola
d888dd2454
Additional tests
...
[SVN r19996]
2003-09-10 15:41:37 +00:00
Dave Abrahams
0ba0ff8ce3
Use the import rule
...
[SVN r19968]
2003-09-08 17:38:49 +00:00
Fernando Cacciola
741a64d96e
Copyright added
...
[SVN r17408]
2003-02-14 15:35:18 +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
7433db80c4
Updated by TortoiseCVS
...
[SVN r17027]
2003-01-24 14:30:39 +00:00
Fernando Cacciola
6fd5d2faad
Fail cases transitorily removed
...
[SVN r17013]
2003-01-23 19:18:35 +00:00
Fernando Cacciola
8db34f0637
compile-failed cases transitorily removed
...
[SVN r17012]
2003-01-23 19:13:11 +00:00
Fernando Cacciola
19d2388a31
Fixed for new regression testing.
...
compile-fail cases added
[SVN r17011]
2003-01-23 18:07:25 +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