
12 Feb
2005
12 Feb
'05
12:29 a.m.
Sergey Skorniakov wrote:
Hello, All!
I think that basic_xml_oarchive destructor can be more safe if uncaught_exception examination will be added, because put sometimes can throw exceptions:
template<class Archive> basic_xml_oarchive<Archive>::~basic_xml_oarchive(){ if(!header) return; if (!std::uncaught_exception()) this->This()->put("</boost_serialization>\n");
What happens if this last statement throws another exception? Robert Ramey