X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2Ftype_traits.hh;fp=senf%2FUtils%2Ftype_traits.hh;h=8f58122418e2f1d9e64978cbd8c3a11b64952f7b;hb=2d88e6b3f5a6f3906e42264f58859e6bf9c12dae;hp=a728ac0928f914b3710379c7c7d59155635201e2;hpb=8a3c2486ed4e34d016c2b89beb5900fdc9d1b3b2;p=senf.git diff --git a/senf/Utils/type_traits.hh b/senf/Utils/type_traits.hh index a728ac0..8f58122 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