Subject: Re: [boost] determine first arg of callable
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-05-15 09:44:05
On Wed, May 15, 2013 at 5:38 PM, Oliver Kowalke <oliver.kowalke_at_[hidden]>wrote:
> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk