From 7eef405eeff59c27691be294906e8381a76771e2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 4 Feb 2015 17:38:49 +0100 Subject: Implemented the Sieve of Eratosthenes as a basic example --- src/runtime/list/for_each.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime') 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::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::value, std::size_t>::type = 0 > -constexpr void for_each(const Function& function) { +void for_each(const Function& function) { function(Head::value); for_each, Function>(function); -- cgit v1.2.3