7dd512a019
Fix issue #98
2021-11-20 02:00:30 +01:00
ead529af54
Address unreachable code warning
...
In MSVC optional<T&>::value() emits a warning C4702: unreachable code because throw_exception is marked BOOST_RETURN.
Otherwise the ternary code might have been preferable.
This change addresses the warning while preserving the functionality. It replicates optional<T>::value() for consistency.
2020-12-19 00:00:18 +01:00
7e0b8145b5
boost::none is constexpr-declared
2020-10-24 17:17:10 +02:00
e47a017009
added o.map()
2018-06-23 18:27:14 +02:00
5182f7f30f
Added has_value()
2018-03-24 00:04:15 +01:00
4fe57f57fa
Fix make_optional for rvalues
2017-11-07 23:33:54 +01:00
44d57a1d8b
Fix: prevented the binding illegal temporary to optional<const int&>
...
Older MSVC versions add illegal temporary when you want to assign from const integral value.
2016-02-19 00:25:54 +01:00
94c735af2d
added optional ref swap
...
and also chaned the copyright year in docs
2016-02-13 15:33:07 +01:00
9d3f2fa825
Doc: spelling fix from jsjohns
2015-03-13 22:53:47 +01:00
726b227aa9
operator<< improvements
2015-01-21 00:10:51 +01:00
31c9119266
value_or() requires that U is convertible to T
...
Due to Vladimir Batov.
2014-06-14 22:49:37 +02:00
befd3970d7
docs -- expanded tutprial section
2014-06-08 16:23:35 +02:00
dec71d338d
Cleaned up docs
2014-06-06 00:53:15 +02:00