15 May
2013
15 May
'13
1:44 p.m.
On Wed, May 15, 2013 at 5:38 PM, Oliver Kowalke
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().
The bind function objects do not have a single operator(), and their operators() are templates.
but what about C++11 lambdas.
Lambdas with no captured variables are convertible to function pointers.