Boost logo

Boost :

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


On 15/05/13 19:34, Oliver Kowalke wrote:
> 2013/5/15 Mathias Gaunard <mathias.gaunard_at_[hidden]>
>
>> On 15/05/13 18:30, Oliver Kowalke wrote:
>>
>> void run() {
>>>> Q< Arg > q;
>>>> fn( q)
>>>> } // argument construction omitted
>>>> };
>>>>
>>>>
>>> concrete implementation - calls default ctor of Q< Arg > in D::run() and
>>> passes instance of Q< Arg > to fn
>>>
>>
>> How can you pass a Q<Arg> to a function expecting an Arg?
>>
>
> because Fn takes a Q< Arg > as argument? as I wrote - in the prvious
> example I omitted the detail of Q<>.

Yet in your code it takes an Arg, not a Q<Arg>.


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