Skip to content

Commit

Permalink
Use optional_constexpr14 with value_or_eval() (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Nov 7, 2021
1 parent 8701a8b commit 76914b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/nonstd/optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ class optional
#if optional_HAVE( REF_QUALIFIER )

template< typename F >
optional_constexpr value_type value_or_eval( F f ) const &
optional_constexpr14 value_type value_or_eval( F f ) const &
{
if ( has_value() )
{
Expand All @@ -1510,7 +1510,7 @@ class optional
}

template< typename F >
value_type value_or_eval( F f ) &&
optional_constexpr14 value_type value_or_eval( F f ) &&
{
if ( has_value() )
{
Expand All @@ -1525,7 +1525,7 @@ class optional
#else

template< typename F >
optional_constexpr value_type value_or_eval( F f ) const
optional_constexpr14 value_type value_or_eval( F f ) const
{
if ( has_value() )
{
Expand Down

0 comments on commit 76914b7

Please sign in to comment.