Boost logo

Boost :

Subject: Re: [boost] [Review.Coroutine] More comments, questions and suggestions
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-09-10 19:31:09


Hi,

just two minor additional comments:

The example

typedef boost::coro::coroutine< void(int) > coro_t;

void f( coro_t::self_t & self, int i)
{
     ...
     self.yield();
     ...
}

coro_t c( boost::bind( f, _1) );
c( 7);

doesn't compiles. It should be something like

     coro_t c( boost::bind( f, _1, _2) );

BTW, I don't see the need to use bind in this case

     coro_t c( f );

works as well.

Could you remove the superfluous uses of bind in the documentation?

Best,
Vicente


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