[Boost-bugs] [Boost C++ Libraries] #13400: boost::archive::xml_iarchive Exception in destructor: "input stream error-No error"

Subject: [Boost-bugs] [Boost C++ Libraries] #13400: boost::archive::xml_iarchive Exception in destructor: "input stream error-No error"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-16 14:09:06


#13400: boost::archive::xml_iarchive Exception in destructor: "input stream error-
No error"
----------------------------------------------------+---------------------
 Reporter: Andrei Bryleuski <andrey-brilevskiy@…> | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+---------------------
 The sample code:

 #include <unordered_map>
 #include <boost/serialization/unordered_map.hpp>
 #include <boost/serialization/vector.hpp>
 #include <boost/serialization/nvp.hpp>
 #include <boost/archive/xml_oarchive.hpp>
 #include <boost/archive/xml_iarchive.hpp>
 #include <fstream>
 #include <iostream>

         std::ifstream ifs("commandKeyToAction.xml");
         auto newCommandKeyToAction = std::unordered_map<std::string,
 std::unordered_map<std::string, std::vector<std::string>>>();

         boost::archive::xml_iarchive xmlIn(ifs);
         xmlIn >> boost::serialization::make_nvp("options",
 newCommandKeyToAction);

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13400>
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-16 14:14:52 UTC