diff --git a/src/include/statics/static_for.h b/src/include/statics/static_for.h index 5c43d27..b4a76e0 100644 --- a/src/include/statics/static_for.h +++ b/src/include/statics/static_for.h @@ -7,7 +7,7 @@ namespace MultiArrayTools { template - inline void sfor(Incr incr, F f) + inline auto sfor(Incr incr, F f) { constexpr auto idx = std::integral_constant{}; constexpr auto idxm = std::integral_constant{}; @@ -18,6 +18,7 @@ namespace MultiArrayTools sfor(incr,f); } } + return cond; } template