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
71d797b9ee
added implementation and tests of flat_map()
2018-06-28 23:30:47 +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
76ff82d191
Silenced warning -Wzero-as-null-pointer-constant
2018-02-15 22:51:08 +01:00
9f8823aebf
Fixed #24
2016-09-27 09:51:09 +03:00
99efe72052
is_const_interal -> is_const_integral
2016-09-06 21:59:54 +02:00
f9324a8790
attempt fix at gcc 5.2 c++03
2016-09-02 01:42:26 +02:00
088e2e3051
Suppress a 'unused parameter' warning in optional_reference_spec.hpp
2016-05-31 01:00:20 +02:00
08076e3964
fixed optional<optional<T>&> case
2016-05-17 00:54:09 +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
94c735af2d
added optional ref swap
...
and also chaned the copyright year in docs
2016-02-13 15:33:07 +01:00
b5b8414c06
Primary template optional<> does not handle references
2016-02-13 00:46:41 +01:00
fb1edf51e8
value_or_eval fix
2015-10-06 12:39:02 +02:00
4939613070
added missing ifdef
2015-10-06 09:17:14 +02:00
b0d7786e14
bug fixes
2015-10-06 00:33:14 +02:00
e7cab0e233
fixed digraphs in optional refs
2015-10-05 23:50:11 +02:00
cf4b2e8b16
specialization for optional ref - preliminary
2015-10-05 16:54:05 +02:00