9 Jan
2014
9 Jan
'14
7:52 p.m.
On Thu, Jan 9, 2014 at 2:28 PM, Oliver Kowalke
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.