Re: [Boost-bugs] [Boost C++ Libraries] #3447: After destruction binary_iarchive seeks to the end of file

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3447: After destruction binary_iarchive seeks to the end of file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-14 19:27:36


#3447: After destruction binary_iarchive seeks to the end of file
--------------------------------------------------------------------------------------------+
 Reporter: Andrey Upadyshev <oliora@…> | Owner: ramey
     Type: Bugs | Status: new
Milestone: | Component: serialization
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: sync file stream basic_binary_iprimitive archive binary_iarchive serialization |
--------------------------------------------------------------------------------------------+

Comment(by ramey):

 Note that it has always been my idea that serialized data
 could be embedded into another stream. I think the question
 you've raised touches upon this.

 note the comment at line # 174 of basic_binary_iprimitive.hpp

 // some libraries including stl and libcomo fail if the
 // buffer isn't flushed before the code_cvt facet is changed.
 // I think this is a bug. We explicity invoke sync to when
 // we're done with the streambuf to work around this problem.
 // Note that sync is a protected member of stream buff so we
 // have to invoke it through a contrived derived class.

 this suggests that the "sync" was only added in response to
 some other difficulty. Take another look at this problem
 and tell me what you think.

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3447#comment:1>
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:01 UTC