diff --git a/AK/Array.h b/AK/Array.h index 67b38d01a2b..a8c5629f2af 100644 --- a/AK/Array.h +++ b/AK/Array.h @@ -156,7 +156,7 @@ constexpr auto integer_sequence_generate_array([[maybe_unused]] T const offset, } template -constexpr static auto iota_array(T const offset = {}) +constexpr auto iota_array(T const offset = {}) { static_assert(N >= T {}, "Negative sizes not allowed in iota_array()"); return Detail::integer_sequence_generate_array(offset, MakeIntegerSequence());