id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3166,Possible Bug in Boost.Interprocess vectorstream,chsalvia@…,Ion Gaztañaga,"There is possibly a bug in the vectorstream class found in the Boost Interprocess library. It seems the internal pointer mp_high_water doesn't get updated every time new data is inserted into the stream via xsputn, which causes problems if you call seekp on a stream. The following code demonstrates the problem: {{{ using namespace std; using namespace boost::interprocess; typedef basic_ovectorstream, std::char_traits > vecstream; vecstream vs; vs << ""AAAABBBB""; vs.seekp(0); // Output the contents of the internal vector // const std::vector& vec = vs.vector(); for (int i = 0; i < vec.size(); ++i) cout << vec[i]; cout << endl; }}} This outputs: AAAAB When it should output: AAAABBBB ",Bugs,closed,Boost 1.40.0,interprocess,Boost 1.39.0,Problem,fixed,,