30 Oct
2013
30 Oct
'13
2:38 p.m.
2013/10/30 Jason Roehm
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