Boost logo

Boost :

Subject: Re: [boost] [coroutine] new versions
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-10-11 08:44:15


> > > Also, the coroutine-fn is called immediately when
> > > the coroutine is called, and not deferred to the first operator()
> call.
> >
> > I don't get it - when will be the body of coroutine-fn entered?
> >
> > coro_t c( fn);//?
> > or
> > c(); //?
> >
>
> The first option.

what if the coroutine-fn expects some arguments?

coroutine< int( string) > c( fn);
c( "abc");

This would indicate that you have to block (jump back) inside coroutine-fn if you try to access an argument.

Oliver


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