P
psujkov
Hi everybody,
in addition to my previous question, first of all this :
template<typename F>
void foo(const F& f)
{
std::cout << boost::function_traits<F>::arity << std::endl;
}
foo(f);
was a great solution for a free functions, so thanks to everybody for
answers
but, alas, this is not a solution for both member functions
and function objects : boost::function_traits cannot work with any of
these types. any ideas ?..
best regards, Paul Sujkov
in addition to my previous question, first of all this :
template<typename F>
void foo(const F& f)
{
std::cout << boost::function_traits<F>::arity << std::endl;
}
foo(f);
was a great solution for a free functions, so thanks to everybody for
answers
and function objects : boost::function_traits cannot work with any of
these types. any ideas ?..
best regards, Paul Sujkov