Skip to content

Commit d580243

Browse files
committed
Use std::reference_constructs_from_temporary_v
1 parent 65472f9 commit d580243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/tuple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ inline _LIBCPP_HIDE_FROM_ABI constexpr _Tp make_from_tuple(_Tuple&& __t)
14581458
make_index_sequence<tuple_size_v<remove_reference_t<_Tuple>>>()))) {
14591459
#if _LIBCPP_STD_VER >= 23 && __has_builtin(__reference_constructs_from_temporary)
14601460
if constexpr (tuple_size_v<remove_reference_t<_Tuple>> == 1) {
1461-
static_assert(!__reference_constructs_from_temporary_v<_Tp, decltype(std::get<0>(std::declval<_Tuple>()))>,
1461+
static_assert(!std::reference_constructs_from_temporary_v<_Tp, decltype(std::get<0>(std::declval<_Tuple>()))>,
14621462
"Attempted construction of reference element binds to a temporary whose lifetime has ended");
14631463
}
14641464
#endif // _LIBCPP_STD_VER >= 23

0 commit comments

Comments
 (0)