Boost logo

Boost :

Subject: Re: [boost] determine first arg of callable
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-05-15 09:26:13


On 15/05/13 15:13, Oliver Kowalke wrote:
> 2013/5/15 Mathias Gaunard <mathias.gaunard_at_[hidden]>
>
>> On 15/05/13 10:35, Oliver Kowalke wrote:
>>
>>> I need some help to extract the type of a callable which is passed as
>>> argument to the ctor of X.
>>>
>>> struct X
>>> {
>>> template< typename Fn >
>>> X( Fn fn) {
>>> ... code which evaluates Fn and extracts the type of the first arg
>>> of Fn
>>> }
>>> };
>>>
>>
>> You can't do that.
>> Just change your code to not require it.
>>
>
> that is not possible

Then I suggest you change the design.


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