|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84571 - trunk/boost/lockfree
From: tim_at_[hidden]
Date: 2013-05-31 03:58:15
Author: timblechmann
Date: 2013-05-31 03:58:13 EDT (Fri, 31 May 2013)
New Revision: 84571
URL: http://svn.boost.org/trac/boost/changeset/84571
Log:
lockfree: spsc-queue - correct dequeue to output iterator
fixes #8629
Signed-off-by: Tim Blechmann <tim_at_[hidden]>
Text files modified:
trunk/boost/lockfree/spsc_queue.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/lockfree/spsc_queue.hpp
==============================================================================
--- trunk/boost/lockfree/spsc_queue.hpp (original)
+++ trunk/boost/lockfree/spsc_queue.hpp 2013-05-31 03:58:13 EDT (Fri, 31 May 2013)
@@ -231,7 +231,7 @@
size_t count0 = max_size - read_index;
size_t count1 = avail - count0;
- std::copy(internal_buffer + read_index, internal_buffer + max_size, it);
+ it = std::copy(internal_buffer + read_index, internal_buffer + max_size, it);
std::copy(internal_buffer, internal_buffer + count1, it);
new_read_index -= max_size;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk