diff --git a/AK/TypeCasts.h b/AK/TypeCasts.h index eafb23f666..9857d0bd41 100644 --- a/AK/TypeCasts.h +++ b/AK/TypeCasts.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include @@ -15,6 +16,7 @@ namespace AK { template ALWAYS_INLINE bool is(InputType& input) { + static_assert(!SameAs); if constexpr (requires { input.template fast_is(); }) { return input.template fast_is(); }