From 343d9fd63fe472f27557a4189b5246c76088d226 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 28 Sep 2007 10:32:15 +0200 Subject: [PATCH] forgot to add the nArgs enum in FunctionPtrTraits --- src/core/type-traits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/type-traits.h b/src/core/type-traits.h index d26df8c13..2fcb83550 100644 --- a/src/core/type-traits.h +++ b/src/core/type-traits.h @@ -42,12 +42,14 @@ private: struct FunctionPtrTraits { enum {IsFunctionPointer = 1}; + enum {nArgs = 0}; typedef U ReturnType; }; template struct FunctionPtrTraits { enum {IsFunctionPointer = 1}; + enum {nArgs = 1}; typedef U ReturnType; typedef V1 Arg1Type; }; @@ -55,6 +57,7 @@ private: struct FunctionPtrTraits { enum {IsFunctionPointer = 1}; + enum {nArgs = 2}; typedef U ReturnType; typedef V1 Arg1Type; typedef V2 Arg2Type;