diff --git a/AK/Variant.h b/AK/Variant.h index e620df5476c..63cc349d193 100644 --- a/AK/Variant.h +++ b/AK/Variant.h @@ -81,7 +81,7 @@ struct Variant { template struct VisitImpl { template - static consteval bool has_explicitly_named_overload() + static constexpr bool has_explicitly_named_overload() { // If we're not allowed to make a member function pointer and call it directly (without explicitly resolving it), // we have a templated function on our hands (or a function overload set). @@ -90,7 +90,7 @@ struct VisitImpl { } template - static consteval bool should_invoke_const_overload(IndexSequence) + static constexpr bool should_invoke_const_overload(IndexSequence) { // Scan over all the different visitor functions, if none of them are suitable for calling with `T const&`, avoid calling that first. return ((has_explicitly_named_overload>()) || ...);