Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3166: Possible Bug in Boost.Interprocess vectorstream
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-11 16:22:48
#3166: Possible Bug in Boost.Interprocess vectorstream
---------------------------------+------------------------------------------
Reporter: chsalvia_at_[hidden] | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: interprocess
Version: Boost 1.39.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Comment(by chsalvia_at_[hidden]):
Actually, the best way to fix this is probably to update the high water
mark when a call to seekoff() is made. That way, overloading xsputn is
unnecessary, and sputc will work properly as well.
In basic_vectorbuf<CharVector, Traits>::seekoff(), the following line
could be added to fix the problem:
{{{
if (mp_high_water < base_type::pptr()) mp_high_water = base_type::pptr();
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3166#comment:4> 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:00 UTC