Skip to content

Commit 76914b7

Browse files
committed
Use optional_constexpr14 with value_or_eval() (#67)
1 parent 8701a8b commit 76914b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/nonstd/optional.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ class optional
14971497
#if optional_HAVE( REF_QUALIFIER )
14981498

14991499
template< typename F >
1500-
optional_constexpr value_type value_or_eval( F f ) const &
1500+
optional_constexpr14 value_type value_or_eval( F f ) const &
15011501
{
15021502
if ( has_value() )
15031503
{
@@ -1510,7 +1510,7 @@ class optional
15101510
}
15111511

15121512
template< typename F >
1513-
value_type value_or_eval( F f ) &&
1513+
optional_constexpr14 value_type value_or_eval( F f ) &&
15141514
{
15151515
if ( has_value() )
15161516
{
@@ -1525,7 +1525,7 @@ class optional
15251525
#else
15261526

15271527
template< typename F >
1528-
optional_constexpr value_type value_or_eval( F f ) const
1528+
optional_constexpr14 value_type value_or_eval( F f ) const
15291529
{
15301530
if ( has_value() )
15311531
{

0 commit comments

Comments
 (0)