Skip to content

Commit 3bbf31d

Browse files
add constexpr
1 parent 28ed94b commit 3bbf31d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__utility/lazy_synth_three_way_comparator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ struct __lazy_synth_three_way_comparator<_Comparator,
9696
__has_default_three_way_comparator<_LHS, _RHS> >::value> > {
9797
// This lifetimebound annotation is technically incorrect, but other specializations actually capture the lifetime of
9898
// the comparator.
99-
_LIBCPP_HIDE_FROM_ABI __lazy_synth_three_way_comparator(_LIBCPP_CTOR_LIFETIMEBOUND const _Comparator&) {}
99+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __lazy_synth_three_way_comparator(_LIBCPP_CTOR_LIFETIMEBOUND const _Comparator&) {}
100100

101101
// Same comment as above.
102-
_LIBCPP_HIDE_FROM_ABI static __eager_compare_result
102+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 static __eager_compare_result
103103
operator()(_LIBCPP_LIFETIMEBOUND const _LHS& __lhs, _LIBCPP_LIFETIMEBOUND const _RHS& __rhs) {
104104
return __eager_compare_result(-__default_three_way_comparator<_LHS, _RHS>()(__lhs, __rhs));
105105
}

0 commit comments

Comments
 (0)