Re: [Boost-bugs] [Boost C++ Libraries] #3166: Possible Bug in Boost.Interprocess vectorstream

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 14:13:02


#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 anonymous):

 This could be resolved by overloading xsputn in the vectorstream class in
 order to update the internal high water mark pointer after calling
 std::basic_streambuf<char_type, traits>::xsputn.

 {{{
 virtual std::streamsize xsputn(const char_type* s, std::streamsize n)
 {
         std::streamsize ret = base_type::xsputn(s, n);
         if (mp_high_water < base_t::pptr()) mp_high_water =
 base_t::pptr();
         return ret;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3166#comment:2>
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