Subject: [Boost-bugs] [Boost C++ Libraries] #6310: Buffered write stream broken
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-21 09:41:51
#6310: Buffered write stream broken
------------------------------+---------------------------------------------
Reporter: anonymous-bp | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.47.0 | Severity: Regression
Keywords: |
------------------------------+---------------------------------------------
Buffered write stream does not work at all in 1.47.0 or 1.48.0 (it did
work in 1.45.0, I haven't checked 1.46).
This should fix it:
{{{
+++ boost_1_48_0/boost/asio/buffered_write_stream.hpp
@@ -335,7 +335,7 @@
std::size_t bytes_avail = boost::asio::buffer_size(buffers);
std::size_t length = bytes_avail < space_avail ? bytes_avail :
space_avail;
storage_.resize(orig_size + length);
- return boost::asio::buffer_copy(storage_.data(), buffers, length);
+ return boost::asio::buffer_copy(storage_.data() + orig_size, buffers,
length);
}
/// The next layer.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6310> 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:08 UTC