forgot to add the nArgs enum in FunctionPtrTraits
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 28 Sep 2007 10:32:15 +0200
changeset 1679 4160d5d5041d
parent 1678 00452ae23a6f
child 1680 151684970a80
forgot to add the nArgs enum in FunctionPtrTraits
src/core/type-traits.h
--- a/src/core/type-traits.h	Fri Sep 28 09:27:57 2007 +0200
+++ b/src/core/type-traits.h	Fri Sep 28 10:32:15 2007 +0200
@@ -42,12 +42,14 @@
   struct FunctionPtrTraits <U (*) (void)>
   {
     enum {IsFunctionPointer = 1};
+    enum {nArgs = 0};
     typedef U ReturnType;
   };
   template <typename U, typename V1> 
   struct FunctionPtrTraits <U (*) (V1)>
   {
     enum {IsFunctionPointer = 1};
+    enum {nArgs = 1};
     typedef U ReturnType;
     typedef V1 Arg1Type;
   };
@@ -55,6 +57,7 @@
   struct FunctionPtrTraits <U (*) (V1,V2)>
   {
     enum {IsFunctionPointer = 1};
+    enum {nArgs = 2};
     typedef U ReturnType;
     typedef V1 Arg1Type;
     typedef V2 Arg2Type;