Boost logo

Boost :

Subject: Re: [boost] [Review.Coroutine] More comments, questions and suggestions
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-09-11 03:51:54


> On Tuesday 11 September 2012 09:08:03 Oliver Kowalke wrote:
> >
> > It is possible to implement it but I've concerns because the
> coroutine-fn
> > has another signature/return type as the signature given to coroutine as
> > template argument. It might confuse users.
> >
> > typedef coroutine< int( int) > coro_t;
> >
> > void fn( coro_t::self_t&, int)
> > {...}
>
> I don't follow the thread closely, but you could provide a placeholder
> type to
> indicate the self_t argument in the signature.

I mean the return type of coroutine-fn and the signature int htecoroutine template arg differ (beside the self_t argument).


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