Skip to content

Commit 93742ac

Browse files
committed
Fixed modules map condition
1 parent 5ad9e70 commit 93742ac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libcxx/modules/std/type_traits.inc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export namespace std {
108108

109109
#if _LIBCPP_STD_VER >= 23
110110
using std::reference_constructs_from_temporary;
111-
# if __has_builtin(__reference_converts_from_temporary)
111+
# if __has_builtin(__reference_converts_from_temporary) || \
112+
(defined(_LIBCPP_COMPILER_CLANG_BASED) && (__clang_major__ >= 19) && (__clang_minor__ >= 1) && \
113+
(__clang_patchlevel__ >= 2))
112114
using std::reference_converts_from_temporary;
113115
# endif
114116
#endif
@@ -290,7 +292,9 @@ export namespace std {
290292
using std::is_volatile_v;
291293
#if _LIBCPP_STD_VER >= 23
292294
using std::reference_constructs_from_temporary_v;
293-
# if __has_builtin(__reference_converts_from_temporary)
295+
# if __has_builtin(__reference_converts_from_temporary) || \
296+
(defined(_LIBCPP_COMPILER_CLANG_BASED) && (__clang_major__ >= 19) && (__clang_minor__ >= 1) && \
297+
(__clang_patchlevel__ >= 2))
294298
using std::reference_converts_from_temporary_v;
295299
# endif
296300
#endif

0 commit comments

Comments
 (0)