Re: [Boost-bugs] [Boost C++ Libraries] #13354: xml_iarchive destructor calls abort()

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13354: xml_iarchive destructor calls abort()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-17 15:31:08


#13354: xml_iarchive destructor calls abort()
-------------------------------+---------------------------
  Reporter: anonymous | Owner: Robert Ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.66.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by Frédéric Devernay <frederic.devernay@…>):

 ok, the problem seems to be that the end tag </boost_serialization> is
 missing.

 try to apply the suggestion from http://boost.2283326.n4.nabble.com/the-
 boost-xml-serialization-to-a-stringstream-does-not-have-an-end-tag-
 td2580772.html

 enclose the xml_oarchive in its own scope, so that its destructor is
 called before calling xml.str();

 maybe boost could be more tolerant in this case, and not choke if the end
 tag is missing?

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13354#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 : 2018-02-17 15:35:29 UTC