From ed74d0efc4d3d8765061142afe81d3fafb08793c Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Sat, 21 Nov 2009 10:54:19 +0000 Subject: [PATCH] msvc doesn't understand this C++ git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1063 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/ForEachType.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } };