
5 Jul
2010
5 Jul
'10
7:36 p.m.
On 7/5/2010 8:21 PM, Daniel Walker wrote:
And if you know a signature of a functor, you can use function_types directly with the signature. For example,
template<typename Signature> void f(const boost::function<Signature> &f) { using boost::function_types::parameter_types; using boost::function_types::function_arity;
typedef typename parameter_types<Signature>::type params; // an mpl sequence const std::size_t arity = function_arity<Signature>::value; // ... }
100 bonus points for implementing boost::bind support for me :) Kind regards, Edd