aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtime/list/for_each.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/list/for_each.h b/src/runtime/list/for_each.h
index 74f038f..8986135 100644
--- a/src/runtime/list/for_each.h
+++ b/src/runtime/list/for_each.h
@@ -13,14 +13,14 @@ template <
typename Function,
typename std::enable_if<std::is_void<Current>::value, std::size_t>::type = 0
>
-constexpr void for_each(const Function&) { }
+void for_each(const Function&) { }
template <
typename Current,
typename Function,
typename std::enable_if<!std::is_void<Current>::value, std::size_t>::type = 0
>
-constexpr void for_each(const Function& function) {
+void for_each(const Function& function) {
function(Head<Current>::value);
for_each<Tail<Current>, Function>(function);