Subject: [Boost-bugs] [Boost C++ Libraries] #10953: boost::lockfree:spsc_queue::consume_all returns bool instead of the number of elements consumed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-22 12:18:19
#10953: boost::lockfree:spsc_queue::consume_all returns bool instead of the number
of elements consumed
------------------------------------------+--------------------------
Reporter: Ephraim Ofir <ephraimofir@â¦> | Owner: timblechmann
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lockfree
Version: Boost 1.57.0 | Severity: Problem
Keywords: |
------------------------------------------+--------------------------
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]]
This also generates the following warning in VS2012:
{{{
boost/lockfree/spsc_queue.hpp(473): warning C4800:
'boost::lockfree::detail::ringbuffer_base<T>::size_t' : forcing value to
bool 'true' or 'false' (performance warning)
}}}
Pull request with fix submitted.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10953> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC