PPI: Allow connecting two MultiConnectorMixin modules
[senf.git] / senf / Utils / type_traits.hh
index dd9ddb2..8f58122 100644 (file)
@@ -33,7 +33,7 @@
 #include <boost/type_traits/remove_cv.hpp>
 #include <boost/type_traits/remove_reference.hpp>
 #include <boost/bind.hpp>
-#include "../config.hh"
+#include <senf/config.hh>
 
 #include "type_traits.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -243,6 +243,14 @@ namespace senf
         : public boost::remove_cv< typename boost::remove_reference<T>::type >
     {};
 
+    template < class T >
+    struct function_arity
+        : public boost::integral_constant<
+              unsigned,
+              boost::function_traits<
+                  typename senf::remove_any_pointer<T>::type>::arity>
+    {};
+
   ///}
 
 #ifndef DOXYGEN