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 authored and Andrzej Krzemienski committed 2020-12-19 00:00:18 +01:00
1 parent a7f49cbec8
commit ead529af54
45 files changed
+79 -62

No files matched your search

+4
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.