From 32abf81176f654217c30f3a1dd25ba9ff4a67dc4 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 6 Feb 2015 19:40:55 +0100 Subject: Moved _SFINAE_ helper into separate header --- src/runtime/list/for_each.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/runtime') diff --git a/src/runtime/list/for_each.h b/src/runtime/list/for_each.h index 1ca2034..b7496a8 100644 --- a/src/runtime/list/for_each.h +++ b/src/runtime/list/for_each.h @@ -3,6 +3,7 @@ #include +#include "sfinae.h" #include "list/list.h" namespace tav { @@ -11,17 +12,17 @@ namespace runtime { template < typename Current, typename Function, - typename std::enable_if::value, std::size_t>::type = 0 + detail::enable_if::value> = 0 > void for_each(const Function&) { } template < typename Current, typename Function, - typename std::enable_if::value, std::size_t>::type = 0 + detail::enable_if::value> = 0 > void for_each(const Function& function) { - function(Head::type::value); + function(Head::value); for_each, Function>(function); } -- cgit v1.2.3