Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13354: xml_iarchive destructor calls abort()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-13 17:54:49
#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 anonymous):
I am having the same problem. I am loading a polymorphic object from an
xml archive like this:
{{{
#!c++
std::ifstream file(filename);
boost::archive::xml_iarchive iarchive(file);
Preferences * ptr;
iarchive >> boost::serialization::make_nvp("preferences", ptr);
return std::unique_ptr<Preferences>(ptr);
}}}
and it crashes after successfully reading the object.
It works with Boost 1.65. I am using GCC 6.4 on NixOS.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13354#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 : 2018-01-13 17:59:54 UTC