On Sat, Sep 3, 2011 at 8:42 PM, Paul Davis wrote:
btw, i also feel that you may have missed the point of the declaration
it does NOT mean that the function that will be executed by operator()
of the boost::function is a void function(void). it means that
operator() can be called without arguments and does return a result.
the actual function executed may take any number of arguments that
will be marshalled from within the functor itself.
its very easy to write a super-fast functor in C++ - i've done one
that barely ends up with any more instructions than a direct function
call. this does not, alas, translate into something usable in all the
ways that things like sigc::mem_fun or boost::function are. the
complexities become more apparent once you try an implementation
Linux-audio-dev mailing list