Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3650: Text Serialization crashes when istream close unexpectedly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-28 18:55:03
#3650: Text Serialization crashes when istream close unexpectedly
-------------------------------------+--------------------------------------
Reporter: Doug Wallas | Owner: ramey
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: serialization
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
Comment(by ramey):
Hmmm - I'm not sure that is the correct fix.
wouldn't it be better to use something like:
boost::archive::text_iarchive ia(*_stream);
while(! _stream->eof() && ! _stream->fail() ) {
boost::shared_ptr<Message> msg; ia >> msg; ...
}
I'm reluctant to add "too much" code in the depths of the library.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3650#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:01 UTC