Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-02-11 19:29:39


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk