diff options
Diffstat (limited to 'include/optional')
-rw-r--r-- | include/optional | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/optional b/include/optional index 8c8ee76b1411..c0fd0e7bc49f 100644 --- a/include/optional +++ b/include/optional @@ -897,7 +897,7 @@ public: template <class _Up> _LIBCPP_INLINE_VISIBILITY - value_type value_or(_Up&& __v) && + constexpr value_type value_or(_Up&& __v) && { static_assert(is_move_constructible_v<value_type>, "optional<T>::value_or: T must be move constructible"); |