Subject: Re: [boost] Boost.Fiber review January 6-15
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2014-01-09 17:11:41
Le 09/01/14 20:52, Nat Goodspeed a écrit :
> 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
>>> queue_op_status queue::pop(Element &);
>> 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.
The proposal throws an exception.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk