AK: Make AK::IsSame<T, U>::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).
This commit is contained in:
AnotherTest 2020-12-26 14:41:58 +03:30 committed by Andreas Kling
parent a9184fcb76
commit ad646420dd

View file

@ -276,16 +276,12 @@ struct RemovePointer<T* const volatile> {
template<typename T, typename U>
struct IsSame {
enum {
value = 0
};
static constexpr bool value = false;
};
template<typename T>
struct IsSame<T, T> {
enum {
value = 1
};
static constexpr bool value = true;
};
template<bool condition, class TrueType, class FalseType>