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
0f8e356bca
rebuilt docs
2018-10-23 22:46:26 +02:00
d0b87d2f35
documented flat_map
2018-07-02 23:23:46 +02:00
51d1bc843d
test and doc update for .map()
2018-06-23 20:53:16 +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
4a9d53539c
documented in-place constructors
2016-10-28 00:01:13 +02:00
62acbe1690
docs: updated gotchas section
2016-09-17 01:25:12 +02:00
865d94a8d8
fixed interop between opt refs and opt vals
2016-03-06 19:08:25 +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
143bda7c9f
doc update about optional references
2016-02-16 21:05:01 +01:00
94c735af2d
added optional ref swap
...
and also chaned the copyright year in docs
2016-02-13 15:33:07 +01:00
9b1894a2f3
Doc: no headers in tables in semantics
2015-05-27 17:06:31 +02:00
8ca74951b0
Added emplace(void) for older compilers
2015-05-15 18:10:19 +02:00
6e40825098
described headers in docs; added move in operator>>
2015-03-09 21:56:25 +01:00
0a8a798c3a
Fixed Trac #10839
2015-03-09 11:50:10 +01:00
59266a2630
More restrictive assignment from optional<U>
2015-03-06 19:20:45 +01:00
726b227aa9
operator<< improvements
2015-01-21 00:10:51 +01:00
fea4882f24
rvalue ref overloads do not return by value
2014-07-10 13:49:36 +02:00
18b8c4bb18
Catching up with N4078
2014-06-28 00:31:36 +02:00
c7200c4aed
Minor docs fixes (operator=)
2014-06-20 22:30:12 +02:00
599c75a6d3
various documentation fixes
2014-06-20 18:22:52 +02:00
4cbb67e505
Cleaner handling of explicit U to T conversions
2014-06-20 11:38:57 +02:00
d70114b3dc
Added func value_or_eval()
2014-06-18 16:42:48 +02:00
9edf2ddac1
docs: fixed requirements in value_or()
2014-06-16 14:23:34 +02:00
31c9119266
value_or() requires that U is convertible to T
...
Due to Vladimir Batov.
2014-06-14 22:49:37 +02:00
8fc2901fad
explicit operator bool becomes noexcept
2014-06-14 00:46:24 +02:00
fdc98d17ca
Added limited emplace() for older compilers
2014-06-06 23:24:43 +02:00
dec71d338d
Cleaned up docs
2014-06-06 00:53:15 +02:00
3dd614fd91
Reorganized docs. Minor code fix wrt opt refs
2014-06-04 18:13:06 +02:00