Boost C++ Libraries: Ticket #10953: boost::lockfree:spsc_queue::consume_all returns bool instead of the number of elements consumed https://svn.boost.org/trac10/ticket/10953 <p> When using the compile_time_sized_ringbuffer version of spsc_queue::consume_all, the value returned is a bool (similar to the way consume_one works) instead of the number of elements consumed (similar to the way the runtime_sized_ringbuffer version works).<br /> </p> <p> This also generates the following warning in VS2012: </p> <pre class="wiki">boost/lockfree/spsc_queue.hpp(473): warning C4800: 'boost::lockfree::detail::ringbuffer_base&lt;T&gt;::size_t' : forcing value to bool 'true' or 'false' (performance warning) </pre><p> Pull request with fix submitted. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10953 Trac 1.4.3 timblechmann Fri, 30 Jan 2015 09:14:18 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10953#comment:1 https://svn.boost.org/trac10/ticket/10953#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> merged </p> Ticket