]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/archive/impl/xml_oarchive_impl.ipp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / archive / impl / xml_oarchive_impl.ipp
index 5ebd454e722243f76852792aa22f22f05abf9bbf..3190e81aee83b113efcf4de47ff6745c36ab2f61 100644 (file)
@@ -10,7 +10,6 @@
 #include <iomanip>
 #include <algorithm> // std::copy
 #include <string>
-#include <exception>
 
 #include <cstring> // strlen
 #include <boost/config.hpp> // msvc 6.0 needs this to suppress warnings
@@ -20,6 +19,7 @@ namespace std{
 } // namespace std
 #endif
 
+#include <boost/core/uncaught_exceptions.hpp>
 #include <boost/archive/iterators/xml_escape.hpp>
 #include <boost/archive/iterators/ostream_iterator.hpp>
 
@@ -132,7 +132,7 @@ xml_oarchive_impl<Archive>::save_binary(const void *address, std::size_t count){
 template<class Archive>
 BOOST_ARCHIVE_DECL
 xml_oarchive_impl<Archive>::~xml_oarchive_impl(){
-    if(std::uncaught_exception())
+    if(boost::core::uncaught_exceptions() > 0)
         return;
     if(0 == (this->get_flags() & no_header))
         this->windup();