Commit Graph

255 Commits

Author SHA1 Message Date
Andrzej Krzemienski d70114b3dc Added func value_or_eval() 2014-06-18 16:42:48 +02:00
Andrzej Krzemienski a158b85bd6 Merge branch 'develop' 2014-06-16 14:26:22 +02:00
Andrzej Krzemienski 9edf2ddac1 docs: fixed requirements in value_or() 2014-06-16 14:23:34 +02:00
Andrzej Krzemienski 0a2a8957fa bug fix: comma in BOOST_STATIC_ASSERT 2014-06-15 21:51:07 +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 8fc2901fad explicit operator bool becomes noexcept 2014-06-14 00:46:24 +02:00
Andrzej Krzemienski 04b9080612 Merge branch 'develop' 2014-06-09 16:19:11 +02:00
Andrzej Krzemienski 07bdbc3743 docs: optional<T> == nont_t requirements 2014-06-08 20:51:55 +02:00
Andrzej Krzemienski befd3970d7 docs -- expanded tutprial section 2014-06-08 16:23:35 +02:00
Andrzej Krzemienski d25b0cfd59 improved example in tutorial 2014-06-06 23:52:29 +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 a448dc7554 Merge branch 'develop'
Conflicts:
	doc/html/index.html
2014-06-06 12:14:26 +02:00
Andrzej Krzemienski dec71d338d Cleaned up docs 2014-06-06 00:53:15 +02:00
Andrzej Krzemienski 402f15e996 described relops in docs 2014-06-04 23:04:02 +02:00
Andrzej Krzemienski 3dd614fd91 Reorganized docs. Minor code fix wrt opt refs 2014-06-04 18:13:06 +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
Andrey Semashev 5e59e10f93 Fix warnings with gcc 4.4 in C++11 mode
GCC 4.4 has support for an early draft of rvalue references. When compiling the conforming code it produces warnings such as '../boost/optional/optional.hpp:152: warning: returning reference to temporary'. In order to fix this regression use a special implementation of move(), similar to std::move() on this compiler.
2014-05-22 10:15:11 +04:00
Andrzej Krzemienski 24438efbf1 rebuilt documentation 2014-05-13 21:20:20 +02:00
Andrzej Krzemienski 3545f9b050 Merge branch 'develop' 2014-05-13 21:12:44 +02:00
Andrzej Krzemienski e9f5ed41be binding to rvalues can be reenabled with a macro 2014-05-13 14:11:17 +02:00
Andrzej Krzemienski 1c9775a9d9 docs: described optional reference binding issues 2014-05-08 21:50:41 +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 86e759fb89 optional<const T&>::rval_reference_type is now T&& (not const T&) 2014-05-02 18:41:23 +02:00
Andrzej Krzemienski 897fdad11b Changed incorrect types in static assertions guarding against binding temporaries to optional refs 2014-05-02 15:41:43 +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 655a9e3035 Added README.md file 2014-04-28 16:01:55 +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
Andrzej Krzemienski 587ef8e988 Added 'raw' move semantics; no unit-tests 2014-04-14 23:44:34 +02:00
Andrzej Krzemienski b4738ac07e Updated HTML documentation format using the super-project css and docbook-xsl-1.78.1 2014-04-12 20:54:37 +02:00
Andrzej Krzemienski 09f2c0f60e Merge branch 'use-super-project-css' of https://github.com/danieljames/optional into develop 2014-04-12 17:22:33 +02:00
Daniel James a3b478b620 Use super-project's css file. 2014-04-12 09:10:24 +01:00
Andrzej Krzemienski b7557909a3 Merge branch 'develop' 2014-04-12 00:02:38 +02:00
Andrzej Krzemienski 5981d984ed Merge branch 'master' of github.com:boostorg/optional 2014-04-11 23:43:13 +02:00
Andrzej Krzemienski 50d09367ca Rebuilt the HTML documentation using a newer xsltproc 2014-04-11 23:36:24 +02:00
Andrzej Krzemienski 40a1ec1ca2 Added HTML documentation generated from QuickBook sources (they were not in sync in the previous commit) 2014-04-11 23:30:49 +02:00
Andrzej Krzemienski c5ca90ed58 Copy-editing optional documentation. Fixes #5382 and a few other issues I noticed while I was at it.
[SVN r71052]

Conflicts:
	doc/html/boost_optional/detailed_semantics.html
	doc/html/index.html
2014-04-11 12:40:07 +02:00
Andrzej Krzemienski fdbac34bfb Fix some more typos and grammatical errors.
[SVN r71089]

Conflicts:
	doc/html/boost_optional/detailed_semantics.html
	doc/html/index.html
2014-04-11 11:47:09 +02:00