15 May
2013
15 May
'13
1:38 p.m.
013/5/15 Mathias Gaunard
that is not possible
Then I suggest you change the design.
the class has to accept a callable object (function pointer or functor) - what is known is that it does return void and takes one argument. this is not a design decision, it is required by the user. as I showed in my example it can be solved - maybe a solution would be to overload the ctor with the type returned by boost::bind(). but what about C++11 lambdas.