forked from boostorg/optional
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.
This commit is contained in:
committed by
Andrzej Krzemienski
parent
a7f49cbec8
commit
ead529af54
@ -11,6 +11,10 @@
|
||||
|
||||
[section:relnotes Release Notes]
|
||||
|
||||
[heading Boost Release 1.76]
|
||||
|
||||
* Fixed MSVC warning C4702.
|
||||
|
||||
[heading Boost Release 1.75]
|
||||
|
||||
* `boost::none` is `constexpr`-declared.
|
||||
|
Reference in New Issue
Block a user