9 Jan
2014
9 Jan
'14
10:11 p.m.
Le 09/01/14 20:52, Nat Goodspeed a écrit :
On Thu, Jan 9, 2014 at 2:28 PM, Oliver Kowalke
wrote: 2014/1/9 Vicente J. Botet Escriba
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.
The proposal throws an exception. Vicente