]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/example/doc_named_mutex.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / example / doc_named_mutex.cpp
index 98f5b379144d24bb7fff415fb6470b09a5f39187..dd98b2c2705825910c1a9edab21089b849387f9c 100644 (file)
@@ -7,7 +7,7 @@
 // See http://www.boost.org/libs/interprocess for documentation.
 //
 //////////////////////////////////////////////////////////////////////////////
-#include <boost/interprocess/detail/config_begin.hpp>
+
 //[doc_named_mutex
 #include <boost/interprocess/sync/scoped_lock.hpp>
 #include <boost/interprocess/sync/named_mutex.hpp>
@@ -22,7 +22,7 @@
 int main ()
 {
    using namespace boost::interprocess;
-   try{
+   BOOST_TRY{
       struct file_remove
       {
       //<-
@@ -87,11 +87,11 @@ int main ()
          file << std::endl;
       }
    }
-   catch(interprocess_exception &ex){
+   BOOST_CATCH(interprocess_exception &ex){
       std::cout << ex.what() << std::endl;
       return 1;
-   }
+   } BOOST_CATCH_END
    return 0;
 }
 //]
-#include <boost/interprocess/detail/config_end.hpp>
+