Subject: [Boost-bugs] [Boost C++ Libraries] #9259: errors in iostreams container_device example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-18 00:16:06
#9259: errors in iostreams container_device example
-------------------------------------+-----------------------
Reporter: chris.foster@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+-----------------------
Hi,
I've been considering container_device as a more controllable alternative
to std::stringstream (to append to a std::vector<char>). I came across
two off-by-one errors in the seek() implementation, and a problem in
write() which could result in excess characters being written when the
container is non-empty to start with.
I'll attach a patch.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9259> 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:14 UTC