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:
gieseanw
2020-12-18 11:13:47 -06:00
committed by Andrzej Krzemienski
parent a7f49cbec8
commit ead529af54
45 changed files with 79 additions and 62 deletions

View File

@ -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.