Boost logo

Boost :

Subject: Re: [boost] [coroutine] Recommended documentation clarification
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2013-10-30 10:38:11


2013/10/30 Jason Roehm <jasonr_at_[hidden]>

>
> On 10/24/2013 11:40 AM, Oliver Kowalke wrote:
>
>> the old version has some bugs and is therefore not recommended.
>> Porting the code to the new interface isn't difficult:
>> coroutine< void( T) > -> coroutine< T >::push_type
>> coroutine< T() > -> coroutine< T >::pull_type
>>
> That makes a bit more sense; I didn't grasp that immediately from the
> documentation. Should I take that to mean that a coroutine can no longer
> both take in an argument and return a value (i.e. either the argument list
> or return value must be void)?
>

data are transferred only in one direction, e.g. the template arg of
coroutine does not represent a signature but the type which is transferred
from push- to pull-coroutine


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