aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-04 17:38:49 +0100
committerAdrian Kummerlaender2015-02-04 17:38:49 +0100
commit7eef405eeff59c27691be294906e8381a76771e2 (patch)
tree3dacd93798eabc5a467f9104850f87d071ba579d /src
parent6d150b7d5a2c65a54203608e398ed38e48ed36e3 (diff)
downloadTypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.gz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.bz2
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.lz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.xz
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.tar.zst
TypeAsValue-7eef405eeff59c27691be294906e8381a76771e2.zip
Implemented the Sieve of Eratosthenes as a basic example
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);