From 599b49f21f46bec4e11e29e57b3dc438a1ed6959 Mon Sep 17 00:00:00 2001
From: jpbl <jpbl>
Date: Mon, 22 Aug 2005 18:47:25 +0000
Subject: [PATCH] *** empty log message ***

---
 utilspp/EmptyType.hpp              |  32 ++
 utilspp/Functors.hpp               |  29 ++
 utilspp/Makefile.am                |  31 +-
 utilspp/NonCopyable.hpp            |   1 -
 utilspp/TypeList.hpp               | 310 ++++++------
 utilspp/TypeTrait.hpp              | 732 ++++++++++++++++++++++++++++-
 utilspp/functor/Binder.hpp         | 102 ++++
 utilspp/functor/Binder.inl         |  39 ++
 utilspp/functor/Functor.hpp        | 129 +++++
 utilspp/functor/Functor.inl        |  54 +++
 utilspp/functor/FunctorHandler.hpp |  95 ++++
 utilspp/functor/FunctorImpl.hpp    | 206 ++++++++
 utilspp/functor/Makefile.am        |   9 +
 utilspp/functor/MemFunHandler.hpp  |  98 ++++
 14 files changed, 1710 insertions(+), 157 deletions(-)
 create mode 100644 utilspp/EmptyType.hpp
 create mode 100644 utilspp/Functors.hpp
 create mode 100644 utilspp/functor/Binder.hpp
 create mode 100644 utilspp/functor/Binder.inl
 create mode 100644 utilspp/functor/Functor.hpp
 create mode 100644 utilspp/functor/Functor.inl
 create mode 100644 utilspp/functor/FunctorHandler.hpp
 create mode 100644 utilspp/functor/FunctorImpl.hpp
 create mode 100644 utilspp/functor/Makefile.am
 create mode 100644 utilspp/functor/MemFunHandler.hpp

diff --git a/utilspp/EmptyType.hpp b/utilspp/EmptyType.hpp
new file mode 100644
index 0000000000..42a64f9a78
--- /dev/null
+++ b/utilspp/EmptyType.hpp
@@ -0,0 +1,32 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_EMPTYTYPE_HPP
+#define UTILSPP_EMPTYTYPE_HPP
+
+namespace utilspp
+{
+  struct EmptyType {};
+};
+
+#endif
diff --git a/utilspp/Functors.hpp b/utilspp/Functors.hpp
new file mode 100644
index 0000000000..1751185d96
--- /dev/null
+++ b/utilspp/Functors.hpp
@@ -0,0 +1,29 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_FUNCTORS_HPP
+#define UTILSPP_FUNCTORS_HPP
+
+#include "functor/Functor.hpp"
+
+#endif
diff --git a/utilspp/Makefile.am b/utilspp/Makefile.am
index dda27b48f8..d7dbe1c908 100644
--- a/utilspp/Makefile.am
+++ b/utilspp/Makefile.am
@@ -1,30 +1,29 @@
-SUBDIRS = singleton
+SUBDIRS = functor singleton
 
-lib_LTLIBRARIES=libutilspp.la
+noinst_LTLIBRARIES = libutilspp.la
 
 libutilspp_la_SOURCES = \
+	EmptyType.hpp \
+	Functors.hpp \
 	NonCopyable.hpp \
 	NullType.hpp \
 	Singleton.hpp \
 	SmartPtr.hpp \
-	ThreadingFactoryMutex.hpp \
-	ThreadingSingle.hpp \
-	TypeList.hpp \
-	TypeTrait.hpp
+	ThreadingFactoryMutex.hpp ThreadingFactoryMutex.inl \
+	ThreadingSingle.hpp ThreadingSingle.inl \
+	TypeList.hpp
+
+libutilspp_la_LIBADD = ./singleton/libsingleton.la
 
 pkginclude_HEADERS = \
+	EmptyType.hpp \
+	Functors.hpp \
 	NonCopyable.hpp \
 	NullType.hpp \
 	Singleton.hpp \
 	SmartPtr.hpp \
-	ThreadingFactoryMutex.hpp \
-	ThreadingSingle.hpp \
-	TypeList.hpp \
-	TypeTrait.hpp
-
-pkgincludedir=$(includedir)/utilspp
-
-libutilspp_la_LIBADD = ./singleton/libsingleton.la
-
-
+	ThreadingFactoryMutex.hpp ThreadingFactoryMutex.inl \
+	ThreadingSingle.hpp ThreadingSingle.inl \
+	TypeList.hpp
 
+pkgincludedir=$(includedir)/utilspp/
diff --git a/utilspp/NonCopyable.hpp b/utilspp/NonCopyable.hpp
index f8b2707397..eb54431293 100644
--- a/utilspp/NonCopyable.hpp
+++ b/utilspp/NonCopyable.hpp
@@ -24,7 +24,6 @@
 #ifndef UTILSPP_NONCOPYABLE_HPP
 #define UTILSPP_NONCOPYABLE_HPP
 
-
 namespace utilspp
 {
    class NonCopyable
diff --git a/utilspp/TypeList.hpp b/utilspp/TypeList.hpp
index 677ed46928..98cdee69f8 100644
--- a/utilspp/TypeList.hpp
+++ b/utilspp/TypeList.hpp
@@ -26,145 +26,191 @@
 
 #include "NullType.hpp"
 
+
+
+#define TYPE_LIST_1( T1 ) utilspp::tl::TypeList< T1, utilspp::NullType >
+#define TYPE_LIST_2( T1, T2 ) ::utilspp::tl::TypeList< T1, TYPE_LIST_1( T2 ) >
+#define TYPE_LIST_3( T1, T2, T3 ) ::utilspp::tl::TypeList< T1, TYPE_LIST_2( T2, T3 ) >
+#define TYPE_LIST_4( T1, T2, T3, T4 ) ::utilspp::tl::TypeList< T1, TYPE_LIST_3( T2, T3, T4 ) >
+#define TYPE_LIST_5( T1, T2, T3, T4, T5 )			\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_4( T2, T3, T4, T5 ) >
+#define TYPE_LIST_6( T1, T2, T3, T4, T5, T6 )			\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_5( T2, T3, T4, T5, T6 ) >
+#define TYPE_LIST_7( T1, T2, T3, T4, T5, T6, T7 )			\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_6( T2, T3, T4, T5, T6, T7 ) >
+#define TYPE_LIST_8( T1, T2, T3, T4, T5, T6, T7, T8 )			\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_7( T2, T3, T4, T5, T6, T7, T8 ) >
+#define TYPE_LIST_9( T1, T2, T3, T4, T5, T6, T7, T8, T9 )		\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_8( T2, T3, T4, T5, T6, T7, T8, T9 ) >
+#define TYPE_LIST_10( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 )		\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_9( T2, T3, T4, T5, T6, T7, T8, T9, T10 ) >
+#define TYPE_LIST_11( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 )	\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_10( T2, T3, T4, T5, T6, T7, T8, T9, T10, T11 ) >
+#define TYPE_LIST_12( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 )	\
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_11( T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12 ) >
+#define TYPE_LIST_13( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 ) \
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_12( T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13 ) >
+#define TYPE_LIST_14( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 ) \
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_13( T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14 ) >
+#define TYPE_LIST_15( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 ) \
+  ::utilspp::tl::TypeList< T1, TYPE_LIST_14( T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15 ) >
+
+
 namespace utilspp
 {
-   namespace tl
-   {
-      template< class T, class U >
-         struct TypeList
-         {
-            typedef T head;
-            typedef U tail;
-         };
-
-      //Calculating length of TypeLists
-      template< class TList > 
-         struct length;
-
-      template<> 
-         struct length< NullType >
-         {
-            enum { value = 0 };
-         };
-
-      template< class T, class U >
-         struct length< TypeList< T, U > >
-         {
-            enum { value = 1 + length< U >::value };
-         };
-
-      //Indexed access
-      template< class TList, unsigned int index >
-         struct TypeAt;
-
-      template< class THead, class TTail >
-         struct TypeAt< TypeList< THead, TTail >, 0 >
-         {
-            typedef head result;
-         }
-
-      template< class THead, class TTail, unsigned int i >
-         struct TypeAt< TypeList< THead, TTail >, i >
-         {
-            typedef typename TypeAt< TTail, i - 1 >::result result;
-         };
-
-      //Searching TypeLists
-      template< class TList, class T >
-         struct index_of;
-
-      template< class T >
-         struct index_of< NullType, T >
-         {
-            enum { value = -1 };
-         };
-
-      template< class TTail, class T >
-         struct index_of< TypeList< T, TTail >, T >
-         {
-            enum { value = 0 };
-         };
-
-      template< class THead, class TTail, class T >
-         struct index_of< TypeList< THead, TTail >, T >
-         {
-            private:
-               enum { temp = index_of< TTail, T >::value > };
-
-            public:
-               enum { value = temp == -1 ? -1 : 1 + temp };
-         };
-
-      //Appending to TypeLists
-      template< class TList, class T > 
-         struct append;
-
-      template <> 
-         struct append< NullType, NullType >
-         {
-            typedef NullType result;
-         };
-
-      template< class T > 
-         struct append< NullType, T >
-         {
-            typedef TYPELIST_1( T ) result;
-         };
-
-      template< class THead, class TTail >
-         struct append< NullType, NullType, TypeList< THead, TTail > >
-         {
-            typedef TypeList< THead, TTail > result;
-         };
-
-      template < class THead, class TTail, class T >
-         struct append< TypeList< THead, TTail >, T >
-         {
-            typedef TypeList< THead, typename append< TTail, T >::result >
-               result;
-         };
-
-      //Erasing a type from a TypeList
-      template< class TList, class T > 
-         struct erase;
+  namespace tl
+  {
+    template< class T, class U >
+    struct TypeList
+    {
+      typedef T head;
+      typedef U tail;
+    };
+
+    //Calculating length of TypeLists
+    template< class TList > 
+    struct length;
+
+    template<> 
+    struct length< NullType >
+    {
+      enum { value = 0 };
+    };
+
+    template< class T, class U >
+    struct length< TypeList< T, U > >
+    {
+      enum { value = 1 + length< U >::value };
+    };
+
+    /**
+     * Returns the type at a given position (zero-based)
+     * in TList. If the index is greather than or equal to 
+     * the length of TList, a compile-time error occurs.
+     */
+    template< class TList, unsigned int index >
+    struct TypeAt;
+
+    template< class THead, class TTail >
+    struct TypeAt< TypeList< THead, TTail >, 0 >
+    {
+      typedef THead Result;
+    };
+     
+    template< class THead, class TTail, unsigned int i >
+    struct TypeAt< TypeList< THead, TTail >, i >
+    {
+      typedef typename TypeAt< TTail, i - 1 >::Result Result;
+    };
+     
+    /**
+     * Returns the type at a given position (zero-based)
+     * in TList. If the index is greather than or equal to 
+     * the length of TList, OutOfBound template class is 
+     * returned.
+     */
+    template< class TList, unsigned int index, class OutOfBound = utilspp::NullType >
+    struct TypeAtNonStrict;
+
+    template< class THead, class TTail, class OutOfBound >
+    struct TypeAtNonStrict< TypeList< THead, TTail >, 0, OutOfBound >
+    {
+      typedef THead Result;
+    };
+     
+    template< class THead, class TTail, unsigned int i, class OutOfBound >
+    struct TypeAtNonStrict< TypeList< THead, TTail >, i, OutOfBound >
+    {
+      typedef typename TypeAtNonStrict< TTail, i - 1 >::Result Result;
+    };
+
+    template< unsigned int i, class OutOfBound >
+    struct TypeAtNonStrict< utilspp::NullType, i , OutOfBound>
+    {
+      typedef OutOfBound Result;
+    };
+
+
+    //Searching TypeLists
+    template< class TList, class T >
+    struct IndexOf;
+
+    template< class T >
+    struct IndexOf< NullType, T >
+    {
+      enum { value = -1 };
+    };
+
+    template< class TTail, class T >
+    struct IndexOf< TypeList< T, TTail >, T >
+    {
+      enum { value = 0 };
+    };
+
+    template< class THead, class TTail, class T >
+    struct IndexOf< TypeList< THead, TTail >, T >
+    {
+    private:
+      enum { temp = IndexOf< TTail, T >::value };
+
+    public:
+      enum { value = temp == -1 ? -1 : 1 + temp };
+    };
+
+    //Appending to TypeLists
+    template< class TList, class T > 
+    struct append;
+
+    template <> 
+    struct append< NullType, NullType >
+    {
+      typedef NullType Result;
+    };
+
+    template< class T > 
+    struct append< NullType, T >
+    {
+      typedef TYPE_LIST_1( T ) Result;
+    };
+
+    template< class THead, class TTail >
+    struct append< NullType, TypeList< THead, TTail > >
+    {
+      typedef TypeList< THead, TTail > Result;
+    };
+
+    template < class THead, class TTail, class T >
+    struct append< TypeList< THead, TTail >, T >
+    {
+      typedef TypeList< THead, typename append< TTail, T >::Result >
+      Result;
+    };
+
+    //Erasing a type from a TypeList
+    template< class TList, class T > 
+    struct erase;
         
-        template< class T >
-           struct erase< NullType, T >
-           {
-              typedef NullType result;
-           };
+    template< class T >
+    struct erase< NullType, T >
+    {
+      typedef NullType Result;
+    };
         
-        template< class T, class TTail >
-           struct erase< TypeList< T, TTail >, T >
-           {
-              typedef TTail result;
-           };
+    template< class T, class TTail >
+    struct erase< TypeList< T, TTail >, T >
+    {
+      typedef TTail Result;
+    };
         
-        template< class THead, class TTail, class T >
-           struct erase< TypeList< THead, TTail >, T >
-           {
-              typedef TypeList< THead, typename erase< TTail, T >::result >
-                result;
-           };
-   };
+    template< class THead, class TTail, class T >
+    struct erase< TypeList< THead, TTail >, T >
+    {
+      typedef TypeList< THead, typename erase< TTail, T >::Result >
+      Result;
+    };
+  };
 };      
 
-#define TYPELIST_1( T1 ) ::utilspp::TypeList< T1, ::utilspp::NullType >
-#define TYPE_LIST_2( T1, T2 ) ::utilspp::TypeList< T1, TYPE_LIST_1( T2 ) >
-#define TYPE_LIST_3( T1, T2, T3 ) ::utilspp::TypeList< T1, TYPE_LIST_2( T2, T3 ) >
-#define TYPE_LIST_4( T1, T2, T3, T4 ) ::utilspp::TypeList< T1, TYPE_LIST_3( T2, T3, T4 ) >
-#define TYPE_LIST_5( T1, T2, T3, T4, T5 ) \
-::utilspp::TypeList< T1, TYPE_LIST_4( T2, T3, T4, T5 ) >
-#define TYPE_LIST_6( T1, T2, T3, T4, T5, T6 ) \
-::utilspp::TypeList< T1, TYPE_LIST_5( T2, T3, T4, T5, T6 ) >
-#define TYPE_LIST_7( T1, T2, T3, T4, T5, T6, T7 ) \
-::utilspp::TypeList< T1, TYPE_LIST_6( T2, T3, T4, T5, T6, T7 ) >
-#define TYPE_LIST_8( T1, T2, T3, T4, T5, T6, T7, T8 ) \
-::utilspp::TypeList< T1, TYPE_LIST_7( T2, T3, T4, T5, T6, T7, T8 ) >
-#define TYPE_LIST_9( T1, T2, T3, T4, T5, T6, T7, T8, T9 ) \
-::utilspp::TypeList< T1, TYPE_LIST_8( T2, T3, T4, T5, T6, T7, T8, T9 ) >
-#define TYPE_LIST_10( T1, T2, T3, T4, T5, T6, T7, T8, T9, T10 ) \
-::utilspp::TypeList< T1, TYPE_LIST_9( T2, T3, T4, T5, T6, T7, T8, T9, T10 ) >
 
 #endif
 
diff --git a/utilspp/TypeTrait.hpp b/utilspp/TypeTrait.hpp
index 2c30f30009..7046f6ee01 100644
--- a/utilspp/TypeTrait.hpp
+++ b/utilspp/TypeTrait.hpp
@@ -65,30 +65,482 @@ namespace utilspp
   template< class T >
   struct PointerOnMemberFunction
   {
-    typedef ::utilspp::NullType ClassType;
-    typedef ::utilspp::NullType ReturnType;
-    typedef ::utilspp::NullType ParamType;
+    typedef utilspp::NullType ClassType;
+    typedef utilspp::NullType ReturnType;
+    typedef utilspp::NullType Param1Type;
+    typedef utilspp::NullType Param2Type;
+    typedef utilspp::NullType Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef utilspp::NullType ParamList;
+  };
+
+  template< typename V, typename W >
+  struct PointerOnMemberFunction< W(V::*)() >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    
+    typedef utilspp::NullType Param1Type;
+    typedef utilspp::NullType Param2Type;
+    typedef utilspp::NullType Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef utilspp::NullType ParamList;
+  };
+
+  template< typename V, typename W, typename X >
+  struct PointerOnMemberFunction< W(V::*)(X) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef utilspp::NullType Param2Type;
+    typedef utilspp::NullType Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_1(X) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y >
+  struct PointerOnMemberFunction< W(V::*)(X, Y) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef utilspp::NullType Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_2(X, Y) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_3(X, Y, Z) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_3(X, Y, Z) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef utilspp::NullType Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_3(X, Y, Z) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef utilspp::NullType Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_4(X, Y, Z, A) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X ParamType;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef utilspp::NullType Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_5(X, Y, Z, A, B) ParamList;
   };
 
-  template< typename V, typename W, typename R >
-  struct PointerOnMemberFunction< W(V::*)(R) >
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C) >
   {
     typedef V ClassType;
     typedef W ReturnType;
-    typedef R ParamType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_6(X, Y, Z, A, B, C) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_7(X, Y, Z, A, B, C, D) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_8(X, Y, Z, A, B, C, D, E) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_9(X, Y, Z, A, B, C, D, E, F) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_10(X, Y, Z, A, B, C, D, E, F, G) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G, H) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef H Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_11(X, Y, Z, A, B, C, D, E, F, G, H) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G, H, I) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef H Param11Type;
+    typedef I Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_12(X, Y, Z, A, B, C, D, E, F, G, H, I) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I, typename J >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G, H, I, J) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef H Param11Type;
+    typedef I Param12Type;
+    typedef J Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_13(X, Y, Z, A, B, C, D, E, F, G, H, I, J) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I, typename J, typename K >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G, H, I, J, K) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef H Param11Type;
+    typedef I Param12Type;
+    typedef J Param13Type;
+    typedef K Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_14(X, Y, Z, A, B, C, D, E, F, G, H, I, J, K) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I, typename J, typename K, typename L >
+  struct PointerOnMemberFunction< W(V::*)(X, Y, Z, A, B, C, D, E, F, G, H, I, J, K, L) >
+  {
+    typedef V ClassType;
+    typedef W ReturnType;
+    typedef X Param1Type;
+    typedef Y Param2Type;
+    typedef Z Param3Type;
+    typedef A Param4Type;
+    typedef B Param5Type;
+    typedef C Param6Type;
+    typedef D Param7Type;
+    typedef E Param8Type;
+    typedef F Param9Type;
+    typedef G Param10Type;
+    typedef H Param11Type;
+    typedef I Param12Type;
+    typedef J Param13Type;
+    typedef K Param14Type;
+    typedef L Param15Type;
+
+    typedef TYPE_LIST_15(X, Y, Z, A, B, C, D, E, F, G, H, I, J, K, L) ParamList;
   };
 
   template< typename T >
   struct PointerOnFunction
   {
     typedef utilspp::NullType ReturnType;
+
     typedef utilspp::NullType Param1Type;
     typedef utilspp::NullType Param2Type;
-    typedef utilspp::NullType Param3;
+    typedef utilspp::NullType Param3Type;
     typedef utilspp::NullType Param4Type;
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef utilspp::NullType ParamList;
   };
 
   template< typename V >
@@ -102,7 +554,17 @@ namespace utilspp
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
-  };
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+ 
+    typedef utilspp::NullType ParamList;
+ };
 
   template< typename V, typename W >
   struct PointerOnFunction< V(*)(W) >
@@ -115,6 +577,16 @@ namespace utilspp
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_1(W) ParamList;
   };
 
   template< typename V, typename W, typename X >
@@ -128,6 +600,16 @@ namespace utilspp
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_2(W, X) ParamList;
   };
 
   template< typename V, typename W, typename X, typename Y >
@@ -141,6 +623,16 @@ namespace utilspp
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_3(W, X, Y) ParamList;
   };
 
   template< typename V, typename W, typename X, typename Y, typename Z >
@@ -154,6 +646,16 @@ namespace utilspp
     typedef utilspp::NullType Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+    
+    typedef TYPE_LIST_4(W, X, Y, Z) ParamList;
   };
 
   template< typename V, typename W, typename X, typename Y, typename Z, typename A >
@@ -167,6 +669,16 @@ namespace utilspp
     typedef A Param5Type;
     typedef utilspp::NullType Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_5(W, X, Y, Z, A) ParamList;
   };
 
   template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B >
@@ -180,6 +692,16 @@ namespace utilspp
     typedef A Param5Type;
     typedef B Param6Type;
     typedef utilspp::NullType Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_6(W, X, Y, Z, A, B) ParamList;
   };
 
   template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C >
@@ -193,6 +715,200 @@ namespace utilspp
     typedef A Param5Type;
     typedef B Param6Type;
     typedef C Param7Type;
+    typedef utilspp::NullType Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_7(W, X, Y, Z, A, B, C) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef utilspp::NullType Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_8(W, X, Y, Z, A, B, C, D) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef utilspp::NullType Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_9(W, X, Y, Z, A, B, C, D, E) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef utilspp::NullType Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_10(W, X, Y, Z, A, B, C, D, E, F) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F, G) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef G Param11Type;
+    typedef utilspp::NullType Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_11(W, X, Y, Z, A, B, C, D, E, F, G) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F, G, H) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef G Param11Type;
+    typedef H Param12Type;
+    typedef utilspp::NullType Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_12(W, X, Y, Z, A, B, C, D, E, F, G, H) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F, G, H, I) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef G Param11Type;
+    typedef H Param12Type;
+    typedef I Param13Type;
+    typedef utilspp::NullType Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_13(W, X, Y, Z, A, B, C, D, E, F, G, H, I ) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I, typename J >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F, G, H, I, J) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef G Param11Type;
+    typedef H Param12Type;
+    typedef I Param13Type;
+    typedef J Param14Type;
+    typedef utilspp::NullType Param15Type;
+
+    typedef TYPE_LIST_14(W, X, Y, Z, A, B, C, D, E, F, G, H, I, J ) ParamList;
+  };
+
+  template< typename V, typename W, typename X, typename Y, typename Z, typename A, typename B, typename C, typename D, typename E, typename F, typename G, typename H, typename I, typename J, typename K >
+  struct PointerOnFunction< V(*)(W, X, Y, Z, A, B, C, D, E, F, G, H, I, J, K) >
+  {
+    typedef V ReturnType;
+    typedef W Param1Type;
+    typedef X Param2Type;
+    typedef Y Param3Type;
+    typedef Z Param4Type;
+    typedef A Param5Type;
+    typedef B Param6Type;
+    typedef C Param7Type;
+    typedef D Param8Type;
+    typedef E Param9Type;
+    typedef F Param10Type;
+    typedef G Param11Type;
+    typedef H Param12Type;
+    typedef I Param13Type;
+    typedef J Param14Type;
+    typedef K Param15Type;
+
+    typedef TYPE_LIST_15(W, X, Y, Z, A, B, C, D, E, F, G, H, I, J, K) ParamList;
   };
 
 };
diff --git a/utilspp/functor/Binder.hpp b/utilspp/functor/Binder.hpp
new file mode 100644
index 0000000000..6bd34cfe36
--- /dev/null
+++ b/utilspp/functor/Binder.hpp
@@ -0,0 +1,102 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef CURLPP_BINDER_HPP
+#define CURLPP_BINDER_HPP
+
+namespace utilspp
+{
+  template< typename Incoming >
+  class BinderFirst : FunctorImpl< typename Incoming::ResultType,
+				   typename Incoming::ParamList::Tail >
+  {
+    typedef utilspp::Functor< typename Incoming::ResultType, typename Incoming::ParamList::Tail > Outgoing;
+    typedef typename Incoming::Parm1 Bound;
+    typedef typename Incoming::ResultType ResultType;
+    
+  public:
+    BinderFirst(const Incoming& fun, Bound bound)
+      : mFun(fun), mBound(bound)
+    {}
+
+    BinderFirst* clone() const
+    {return new BinderFirst(*this);}
+
+    ResultType operator()()
+    {return mFun(mBound)();}
+
+    ResultType operator()(typename Outgoing::Parm1 p1)
+    {return mFun(mBound, p1);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2)
+    {return mFun(mBound, p1, p2);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3)
+    {return mFun(mBound, p1, p2, p3);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4)
+    {return mFun(mBound, p1, p2, p3, p4);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5)
+    {return mFun(mBound, p1, p2, p3, p4, p5);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9, typename Outgoing::Parm10 p10)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9, typename Outgoing::Parm10 p10, typename Outgoing::Parm11 p11)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9, typename Outgoing::Parm10 p10, typename Outgoing::Parm11 p11, typename Outgoing::Parm12 p12)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9, typename Outgoing::Parm10 p10, typename Outgoing::Parm11 p11, typename Outgoing::Parm12 p12, typename Outgoing::Parm13 p13)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);}
+
+    ResultType operator()(typename Outgoing::Parm1 p1, typename Outgoing::Parm2 p2, typename Outgoing::Parm3 p3, typename Outgoing::Parm4 p4, typename Outgoing::Parm5 p5, typename Outgoing::Parm6 p6, typename Outgoing::Parm7 p7, typename Outgoing::Parm8 p8, typename Outgoing::Parm9 p9, typename Outgoing::Parm10 p10, typename Outgoing::Parm11 p11, typename Outgoing::Parm12 p12, typename Outgoing::Parm13 p13, typename Outgoing::Parm14 p14)
+    {return mFun(mBound, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);}
+
+  private:
+    Incoming mFun;
+    Bound mBound;
+  };
+
+  template< typename R, class TList >
+  Functor<R, typename TList::Tail> BindFirst(const Functor<R, TList>& fun,
+					     typename TList::THead bound);
+};
+
+#include "Binder.inl"
+
+#endif
diff --git a/utilspp/functor/Binder.inl b/utilspp/functor/Binder.inl
new file mode 100644
index 0000000000..a2167a9aaf
--- /dev/null
+++ b/utilspp/functor/Binder.inl
@@ -0,0 +1,39 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef CURLPP_BINDER_HPP
+#define CURLPP_BINDER_HPP
+
+template< R, class TList >
+utilspp::Functor<R, typename TList::Tail> BindFirst(const Functor<R, TList>& fun,
+                                                    TList::Head bound)
+{
+  typedef Functor< R, TList > Incoming;
+  typedef Functor< R, typename TList::Tail > Outgoing;
+
+  return Outgoing(std::auto_ptr< 
+    typename Outgoing::Impl >(new BinderFirst< Incoming >(fun, bound)));
+}
+
+#endif
+
diff --git a/utilspp/functor/Functor.hpp b/utilspp/functor/Functor.hpp
new file mode 100644
index 0000000000..e6255fadd2
--- /dev/null
+++ b/utilspp/functor/Functor.hpp
@@ -0,0 +1,129 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_FUNCTOR_HPP
+#define UTILSPP_FUNCTOR_HPP
+
+#include <memory>
+
+#include "../NullType.hpp"
+#include "../EmptyType.hpp"
+#include "../TypeList.hpp"
+
+#include "FunctorImpl.hpp"
+#include "FunctorHandler.hpp"
+#include "MemFunHandler.hpp"
+
+namespace utilspp
+{
+  template< typename R, class TList >
+  class Functor
+  {
+  public:
+    typedef R ResultType;
+    typedef TList ParmList;
+
+    Functor(const Functor &functor);
+    Functor& operator=(const Functor &functor);
+    //explicit Functor(std::auto_ptr< Impl > impl);
+    template< class Fun >
+    Functor(Fun fun);
+    template< class PointerToObj, class MemFun >
+    Functor(const PointerToObj &obj, MemFun fun);
+
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 0, utilspp::EmptyType >::Result Parm1;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 1, utilspp::EmptyType >::Result Parm2;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 2, utilspp::EmptyType >::Result Parm3;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 3, utilspp::EmptyType >::Result Parm4;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 4, utilspp::EmptyType >::Result Parm5;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 5, utilspp::EmptyType >::Result Parm6;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 6, utilspp::EmptyType >::Result Parm7;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 7, utilspp::EmptyType >::Result Parm8;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 8, utilspp::EmptyType >::Result Parm9;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 9, utilspp::EmptyType >::Result Parm10;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 10, utilspp::EmptyType >::Result Parm11;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 11, utilspp::EmptyType >::Result Parm12;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 12, utilspp::EmptyType >::Result Parm13;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 13, utilspp::EmptyType >::Result Parm14;
+    typedef typename utilspp::tl::TypeAtNonStrict< TList, 14, utilspp::EmptyType >::Result Parm15;
+
+    R operator()()
+    {return (*mImpl)();}
+
+    R operator()(Parm1 p1)
+    {return (*mImpl)(p1);}
+
+    R operator()(Parm1 p1, Parm2 p2)
+    {return (*mImpl)(p1, p2);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3)
+    {return (*mImpl)(p1, p2, p3);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4)
+    {return (*mImpl)(p1, p2, p3, p4);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5)
+    {return (*mImpl)(p1, p2, p3, p4, p5);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10, Parm11 p11)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10, Parm11 p11, Parm12 p12)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10, Parm11 p11, Parm12 p12, Parm13 p13)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10, Parm11 p11, Parm12 p12, Parm13 p13, Parm14 p14)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);}
+
+    R operator()(Parm1 p1, Parm2 p2, Parm3 p3, Parm4 p4, Parm5 p5, Parm6 p6, Parm7 p7, Parm8 p8, Parm9 p9, Parm10 p10, Parm11 p11, Parm12 p12, Parm13 p13, Parm14 p14, Parm15 p15)
+    {return (*mImpl)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);}
+
+  private:
+    typedef FunctorImpl< R, TList > Impl;
+    std::auto_ptr<Impl> mImpl;
+  };
+
+
+};
+
+#include "Functor.inl"
+#include "Binder.hpp"
+
+#endif
diff --git a/utilspp/functor/Functor.inl b/utilspp/functor/Functor.inl
new file mode 100644
index 0000000000..9534aada18
--- /dev/null
+++ b/utilspp/functor/Functor.inl
@@ -0,0 +1,54 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_FUNCTOR_INL
+#define UTILSPP_FUNCTOR_INL
+
+template <typename R, class TList>
+template <typename Fun>
+utilspp::Functor<R, TList>::Functor(Fun fun)
+: mImpl(new FunctorHandler< Functor, Fun >(fun))
+{}
+
+template <typename R, class TList>
+template <typename PointerToObj, typename MemFun>
+utilspp::Functor<R, TList>::Functor(const PointerToObj &obj, MemFun fun)
+: mImpl(new MemFunHandler< Functor, PointerToObj, MemFun >(obj, fun))
+{}
+
+template <typename R, class TList>
+utilspp::Functor<R, TList>::Functor(const Functor &functor)
+: mImpl(functor->mImpl->clone())
+{}
+
+template <typename R, class TList>
+utilspp::Functor<R, TList> &
+utilspp::Functor<R, TList>::operator=(const Functor &functor)
+{
+  delete(mImpl);
+  mImpl = functor->clone();
+  return (*this);
+}
+
+#endif
+
diff --git a/utilspp/functor/FunctorHandler.hpp b/utilspp/functor/FunctorHandler.hpp
new file mode 100644
index 0000000000..5556e8d56c
--- /dev/null
+++ b/utilspp/functor/FunctorHandler.hpp
@@ -0,0 +1,95 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_FUNCTORHANDLER_HPP
+#define UTILSPP_FUNCTORHANDLER_HPP
+
+namespace utilspp
+{
+  template <class ParentFunctor, typename Fun>
+  class FunctorHandler : public FunctorImpl< typename ParentFunctor::ResultType,
+					     typename ParentFunctor::ParmList >
+  {
+  public:
+    typedef typename ParentFunctor::ResultType ResultType;
+    
+    FunctorHandler(Fun fun) : mFun(fun) {}
+    FunctorHandler* clone() const
+    {return new FunctorHandler(*this);}
+
+    ResultType operator()()
+    {return mFun();}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1)
+    {return (mFun)(p1);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2)
+    {return (mFun)(p1, p2);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3)
+    {return (mFun)(p1, p2, p3);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4)
+    {return (mFun)(p1, p2, p3, p4);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5)
+    {return (mFun)(p1, p2, p3, p4, p5);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6)
+    {return (mFun)(p1, p2, p3, p4, p5, p6);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13, typename ParentFunctor::Parm14 p14)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13, typename ParentFunctor::Parm14 p14, typename ParentFunctor::Parm15 p15)
+    {return (mFun)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);}
+
+  private:
+    Fun mFun;
+  };
+};
+
+#endif
+
+
diff --git a/utilspp/functor/FunctorImpl.hpp b/utilspp/functor/FunctorImpl.hpp
new file mode 100644
index 0000000000..93f59716fd
--- /dev/null
+++ b/utilspp/functor/FunctorImpl.hpp
@@ -0,0 +1,206 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_FUNCTORIMPL_HPP
+#define UTILSPP_FUNCTORIMPL_HPP
+
+namespace utilspp
+{
+  template< typename R, class TList >
+  struct FunctorImpl;
+  
+  template< typename R >
+  struct FunctorImpl<R, utilspp::NullType >
+  {
+    R operator()() = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+  
+  template< typename R, typename P1 >
+  struct FunctorImpl<R, TYPE_LIST_1(P1) >
+  {
+    virtual R operator()(P1) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+  
+  template< typename R, typename P1, typename P2 >
+  struct FunctorImpl<R, TYPE_LIST_2(P1, P2) >
+  {
+    virtual R operator()(P1, P2) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+  
+  template< typename R, typename P1, typename P2, typename P3 >
+  struct FunctorImpl<R, TYPE_LIST_3(P1, P2, P3) >
+  {
+    virtual R operator()(P1, P2, P3) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4 >
+  struct FunctorImpl<R, TYPE_LIST_4(P1, P2, P3, P4) >
+  {
+    virtual R operator()(P1, P2, P3, P4) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5 >
+  struct FunctorImpl<R, TYPE_LIST_5(P1, P2, P3, P4, P5) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< 
+    typename R, 
+    typename P1, 
+    typename P2, 
+    typename P3, 
+    typename P4, 
+    typename P5, 
+    typename P6 >
+  struct FunctorImpl<R, TYPE_LIST_6(P1, P2, P3, P4, P5, P6) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< 
+    typename R, 
+    typename P1, 
+    typename P2, 
+    typename P3, 
+    typename P4, 
+    typename P5, 
+    typename P6, 
+    typename P7 >
+  struct FunctorImpl<R, TYPE_LIST_7(P1, P2, P3, P4, P5, P6, P7) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< 
+    typename R, 
+    typename P1, 
+    typename P2, 
+    typename P3, 
+    typename P4, 
+    typename P5, 
+    typename P6, 
+    typename P7, 
+    typename P8 >
+  struct FunctorImpl<R, TYPE_LIST_8(P1, P2, P3, P4, P5, P6, P7, P8) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< 
+    typename R, 
+    typename P1, 
+    typename P2, 
+    typename P3, 
+    typename P4, 
+    typename P5, 
+    typename P6, 
+    typename P7, 
+    typename P8, 
+    typename P9 >
+  struct FunctorImpl<R, TYPE_LIST_9(P1, P2, P3, P4, P5, P6, P7, P8, P9) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< 
+    typename R, 
+    typename P1, 
+    typename P2, 
+    typename P3, 
+    typename P4, 
+    typename P5, 
+    typename P6, 
+    typename P7, 
+    typename P8, 
+    typename P9, 
+    typename P10 >
+  struct FunctorImpl<R, TYPE_LIST_10(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11 >
+  struct FunctorImpl<R, TYPE_LIST_11(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12 >
+  struct FunctorImpl<R, TYPE_LIST_12(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13 >
+  struct FunctorImpl<R, TYPE_LIST_13(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14 >
+  struct FunctorImpl<R, TYPE_LIST_14(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+
+  template< typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6, typename P7, typename P8, typename P9, typename P10, typename P11, typename P12, typename P13, typename P14, typename P15 >
+  struct FunctorImpl<R, TYPE_LIST_15(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) >
+  {
+    virtual R operator()(P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15) = 0;
+    virtual FunctorImpl *clone() const = 0;
+    virtual ~FunctorImpl(){};
+  };
+};
+
+#endif
diff --git a/utilspp/functor/Makefile.am b/utilspp/functor/Makefile.am
new file mode 100644
index 0000000000..a34251953f
--- /dev/null
+++ b/utilspp/functor/Makefile.am
@@ -0,0 +1,9 @@
+pkginclude_HEADERS = \
+	Binder.hpp Binder.inl \
+	FunctorHandler.hpp \
+	Functor.hpp \
+	FunctorImpl.hpp \
+	Functor.inl \
+	MemFunHandler.hpp
+
+pkgincludedir=$(includedir)/utilspp/functor
diff --git a/utilspp/functor/MemFunHandler.hpp b/utilspp/functor/MemFunHandler.hpp
new file mode 100644
index 0000000000..567e8a7154
--- /dev/null
+++ b/utilspp/functor/MemFunHandler.hpp
@@ -0,0 +1,98 @@
+/*
+ *    Copyright (c) <2002-2004> <Jean-Philippe Barrette-LaPierre>
+ *    
+ *    Permission is hereby granted, free of charge, to any person obtaining
+ *    a copy of this software and associated documentation files 
+ *    (cURLpp), to deal in the Software without restriction, 
+ *    including without limitation the rights to use, copy, modify, merge,
+ *    publish, distribute, sublicense, and/or sell copies of the Software,
+ *    and to permit persons to whom the Software is furnished to do so, 
+ *    subject to the following conditions:
+ *    
+ *    The above copyright notice and this permission notice shall be included
+ *    in all copies or substantial portions of the Software.
+ *    
+ *    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
+ *    IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
+ *    CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ *    TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ *    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef UTILSPP_MEMFUNHANDLER_HPP
+#define UTILSPP_MEMFUNHANDLER_HPP
+
+namespace utilspp
+{
+  template <class ParentFunctor, typename PointerToObj, typename PointerToMemFn>
+  class MemFunHandler : public FunctorImpl< typename ParentFunctor::ResultType,
+					    typename ParentFunctor::ParmList >
+  {
+  public:
+    typedef typename ParentFunctor::ResultType ResultType;
+    MemFunHandler(const PointerToObj& obj, PointerToMemFn memFn) 
+      : mObj(obj)
+      , mMemFn(memFn)
+    {}
+
+    MemFunHandler* clone() const
+    {return new MemFunHandler(*this);}
+
+        ResultType operator()()
+    {return ((*mObj).*mMemFn)();}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1)
+    {return ((*mObj).*mMemFn)(p1);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2)
+    {return ((*mObj).*mMemFn)(p1, p2);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3)
+    {return ((*mObj).*mMemFn)(p1, p2, p3);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13, typename ParentFunctor::Parm14 p14)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);}
+
+    ResultType operator()(typename ParentFunctor::Parm1 p1, typename ParentFunctor::Parm2 p2, typename ParentFunctor::Parm3 p3, typename ParentFunctor::Parm4 p4, typename ParentFunctor::Parm5 p5, typename ParentFunctor::Parm6 p6, typename ParentFunctor::Parm7 p7, typename ParentFunctor::Parm8 p8, typename ParentFunctor::Parm9 p9, typename ParentFunctor::Parm10 p10, typename ParentFunctor::Parm11 p11, typename ParentFunctor::Parm12 p12, typename ParentFunctor::Parm13 p13, typename ParentFunctor::Parm14 p14, typename ParentFunctor::Parm15 p15)
+    {return ((*mObj).*mMemFn)(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);}
+
+  private:
+    PointerToObj mObj;
+    PointerToMemFn mMemFn;
+  };
+};
+
+#endif
+
-- 
GitLab