[libcxx-commits] [libcxx] [libc++] Support more GCC 15 type_traits builtins (PR #137871)
Roland McGrath via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 29 13:26:19 PDT 2025
================
@@ -20,8 +20,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
#if __has_builtin(__add_lvalue_reference)
+# if defined(_LIBCPP_COMPILER_GCC)
+template <class _Tp>
+struct __add_lvalue_reference_gcc {
+ using type = __add_lvalue_reference(_Tp);
+};
----------------
frobtech wrote:
GCC 15 has only just been released and GCC 14 is still in wide use and does not have the builtin.
https://github.com/llvm/llvm-project/pull/137871
More information about the libcxx-commits
mailing list