]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/example/comp_doc_anonymous_conditionB.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / example / comp_doc_anonymous_conditionB.cpp
index a1694dc437f4e8b65e796cec410bcdbd725b1086..9f9386196c525b31d8679a563387135417f484b5 100644 (file)
@@ -7,7 +7,7 @@
 // See http://www.boost.org/libs/interprocess for documentation.
 //
 //////////////////////////////////////////////////////////////////////////////
-#include <boost/interprocess/detail/config_begin.hpp>
+
 //[doc_anonymous_conditionB
 #include <boost/interprocess/shared_memory_object.hpp>
 #include <boost/interprocess/mapped_region.hpp>
@@ -27,7 +27,7 @@ int main ()
       ,read_write                   //read-write mode
       );
 
-   try{
+   BOOST_TRY{
       //Map the whole shared memory in this process
       mapped_region region
          (shm                       //What to map
@@ -60,12 +60,12 @@ int main ()
       }
       while(!end_loop);
    }
-   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>
+