diff --git a/util.hpp b/util.hpp index 35d2e78..680e2ce 100644 --- a/util.hpp +++ b/util.hpp @@ -110,7 +110,7 @@ inline constexpr auto make_offset_index_sequence() } template -auto for_constexpr(Fn &&func, index_sequence) +constexpr auto for_constexpr(Fn &&func, index_sequence) { if constexpr (util::is_void_v>>) { (func(util::integral_constant{}), ...);