mirror of
https://github.com/boostorg/optional.git
synced 2025-07-15 21:32:17 +02:00
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.