mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 18:46:18 +00:00
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:
parent
a9184fcb76
commit
ad646420dd
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue