diff --git a/include/loki/ForEachType.h b/include/loki/ForEachType.h index 187f843..4213e4b 100644 --- a/include/loki/ForEachType.h +++ b/include/loki/ForEachType.h @@ -45,7 +45,11 @@ namespace Loki ForEachTypeImpl( Callable& callable ) : ForEachTypeImpl(callable) { +#ifdef _MSC_VER callable.operator()(); +#else + callable.template operator()(); +#endif } }; @@ -60,7 +64,11 @@ namespace Loki ForEachTypeImpl( Callable& callable ) { +#ifdef _MSC_VER callable.operator()(); +#else + callable.template operator()(); +#endif } };