Boost logo

Boost :

Subject: Re: [boost] determine first arg of callable
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2013-05-15 09:38:01


013/5/15 Mathias Gaunard <mathias.gaunard_at_[hidden]>

> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk