From 01c2cffccab7f066079eb344ed2ce9aab818c632 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 1 Oct 2022 16:10:03 +0200 Subject: [PATCH] AK: Fix naming conflict with compiler builtin Clang patch D116203 added various builtin functions for type traits, `__decay` being one of them. This name conflicts with our `AK::Detail::__decay`, leading to compiler warnings with Clang 16. --- AK/StdLibExtraDetails.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AK/StdLibExtraDetails.h b/AK/StdLibExtraDetails.h index 8bd643436a..13cb32bb4e 100644 --- a/AK/StdLibExtraDetails.h +++ b/AK/StdLibExtraDetails.h @@ -567,20 +567,20 @@ template typename U, typename... Us> inline constexpr bool IsSpecializationOf, U> = true; template -struct __decay { +struct __Decay { typedef Detail::RemoveCVReference type; }; template -struct __decay { +struct __Decay { typedef T* type; }; template -struct __decay { +struct __Decay { typedef T* type; }; // FIXME: Function decay template -using Decay = typename __decay::type; +using Decay = typename __Decay::type; template inline constexpr bool IsPointerOfType = IsPointer>&& IsSame>>>;