Skip to content

Commit 0e25010

Browse files
committed
Fix CI
1 parent 28373d2 commit 0e25010

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libcxx/include/__type_traits/reference_constructs_from_temporary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
_LIBCPP_BEGIN_NAMESPACE_STD
2020

21-
#if _LIBCPP_STD_VER >= 23
21+
#if _LIBCPP_STD_VER >= 23 && __has_builtin(__reference_constructs_from_temporary)
2222

2323
template <class _Tp, class _Up>
2424
struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS reference_constructs_from_temporary

libcxx/include/__type_traits/reference_converts_from_temporary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
_LIBCPP_BEGIN_NAMESPACE_STD
2020

21-
#if _LIBCPP_STD_VER >= 23
21+
#if _LIBCPP_STD_VER >= 23 && __has_builtin(__reference_converts_from_temporary)
2222

2323
template <class _Tp, class _Up>
2424
struct _LIBCPP_TEMPLATE_VIS _LIBCPP_NO_SPECIALIZATIONS reference_converts_from_temporary

libcxx/modules/std/type_traits.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ export namespace std {
107107
using std::has_unique_object_representations;
108108

109109
#if _LIBCPP_STD_VER >= 23
110-
# if _LIBCPP_HAS_REFERENCE_CONSTRUCTS_FROM_TEMPORARY
110+
# if __has_builtin(__reference_constructs_from_temporary)
111111
using std::reference_constructs_from_temporary;
112112
# endif
113-
# if _LIBCPP_HAS_REFERENCE_CONVERTS_FROM_TEMPORARY
113+
# if __has_builtin(__reference_converts_from_temporary)
114114
using std::reference_converts_from_temporary;
115115
# endif
116116
#endif
@@ -291,10 +291,10 @@ export namespace std {
291291
using std::is_unsigned_v;
292292
using std::is_volatile_v;
293293
#if _LIBCPP_STD_VER >= 23
294-
# if _LIBCPP_HAS_REFERENCE_CONSTRUCTS_FROM_TEMPORARY
294+
# if __has_builtin(__reference_constructs_from_temporary)
295295
using std::reference_constructs_from_temporary_v;
296296
# endif
297-
# if _LIBCPP_HAS_REFERENCE_CONVERTS_FROM_TEMPORARY
297+
# if __has_builtin(__reference_converts_from_temporary)
298298
using std::reference_converts_from_temporary_v;
299299
# endif
300300
#endif

0 commit comments

Comments
 (0)