Hi everybody,
in addition to my previous question, first of all this :
template<typena me F>
void foo(const F& f)
{
std::cout << boost::function _traits<F>::ari ty << 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<typena me F>
void foo(const F& f)
{
std::cout << boost::function _traits<F>::ari ty << 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
Comment