From ad646420dd25bff4532faed3f4919168df01144c Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Sat, 26 Dec 2020 14:41:58 +0330 Subject: [PATCH] AK: Make AK::IsSame::value a constexpr bool It being an enum value was preventing it from being used without `!!` in requires clauses (bool also makes more sense anyway). --- AK/StdLibExtras.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index 0e673d81c1..e6b58ebfee 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -276,16 +276,12 @@ struct RemovePointer { template struct IsSame { - enum { - value = 0 - }; + static constexpr bool value = false; }; template struct IsSame { - enum { - value = 1 - }; + static constexpr bool value = true; }; template