X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Ftype_traits.hh;h=19b234521ed1fa64c18674ad5b516dc658d554de;hb=7d2d71183cf287c05d603e5a4954ed4eecf8a409;hp=a728ac0928f914b3710379c7c7d59155635201e2;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/type_traits.hh b/senf/Utils/type_traits.hh index a728ac0..19b2345 100644 --- a/senf/Utils/type_traits.hh +++ b/senf/Utils/type_traits.hh @@ -243,6 +243,14 @@ namespace senf : public boost::remove_cv< typename boost::remove_reference::type > {}; + template < class T > + struct function_arity + : public boost::integral_constant< + unsigned, + boost::function_traits< + typename senf::remove_any_pointer::type>::arity> + {}; + ///} #ifndef DOXYGEN @@ -261,8 +269,8 @@ namespace senf //#include "type_traits.ct" //#include "type_traits.cti" #endif - + // Local Variables: // mode: c++ // fill-column: 100