Boost logo

Boost :

Subject: Re: [boost] Boost.Fiber review January 6-15
From: Nat Goodspeed (nat_at_[hidden])
Date: 2014-01-09 14:52:24


On Thu, Jan 9, 2014 at 2:28 PM, Oliver Kowalke <oliver.kowalke_at_[hidden]> wrote:

> 2014/1/9 Vicente J. Botet Escriba <vicente.botet_at_[hidden]>

> > Could you explain the rationale?
> > Element queue::value_pop();
> > can be used with no default constructible types
> > while
> > queue_op_status queue::pop(Element &);
> > not.

> yes - you are right. I was more focused on a symmetry of the interface
> (returning queue_op_status)

There's the question of what should happen to a caller blocked in
value_pop() when the producer calls close(). Returning queue_op_status
seems safer.


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