Opened 5 years ago
Last modified 5 years ago
#13400 new Bugs
boost::archive::xml_iarchive Exception in destructor: "input stream error-No error"
Reported by: | Owned by: | Robert Ramey | |
---|---|---|---|
Milestone: | To Be Determined | Component: | serialization |
Version: | Boost 1.66.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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);
Attachments (1)
Change History (5)
by , 5 years ago
Attachment: | commandKeyToAction.xml added |
---|
comment:1 by , 5 years ago
The exception occurs in: boost_1_66_0\boost\serialization\throw_exception.hpp
template<class E> inline void throw_exception(E const & e){
throw e;
}
comment:2 by , 5 years ago
Component: | None → serialization |
---|---|
Owner: | set to |
Version: | Boost 1.63.0 → Boost 1.66.0 |
File to deserialize