Obtaining member function/function object's operator() signature

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
 
P

psujkov

Thanks for anyone trying to workaround this (if there were any) ;)
issue is solved, no answers are needed anymore...

best regards, Paul Sujkov
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top