[libcxx-commits] [libcxx] [libc++] Support more GCC 15 type_traits builtins (PR #137871)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 29 15:21:30 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);
+};
----------------
philnik777 wrote:

That's been the policy for years and nobody had a problem with it. Also, this is not the PR to discuss policy changes. If you think we should change our support policy feel free to write an RFC.

https://github.com/llvm/llvm-project/pull/137871


More information about the libcxx-commits mailing list