[libcxx-commits] [libcxx] [libc++] Fix failure with GCC 15 (#117319) (PR #117322)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 22 07:12:00 PST 2024


================
@@ -25,7 +25,7 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-#if __has_builtin(__decay)
+#if __has_builtin(__decay) && !defined(_LIBCPP_COMPILER_GCC)
----------------
philnik777 wrote:

Yes, something like that. I'd probably just use `decay` as the base (i.e. `using __decay_t = decay<T>::type`) for GCC.

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


More information about the libcxx-commits mailing list