]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/test/anonymous_shared_memory_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / test / anonymous_shared_memory_test.cpp
index 2672ec591f546d4f54f2918f995a80066d257db7..136092efd918c6e2ae34c6903be540cdcf8a909f 100644 (file)
@@ -18,7 +18,7 @@ using namespace boost::interprocess;
 
 int main ()
 {
-   try{
+   BOOST_TRY{
       const std::size_t MemSize = 99999*2;
       {
          //Now check anonymous mapping
@@ -43,9 +43,9 @@ int main ()
          }
       }
    }
-   catch(std::exception &exc){
+   BOOST_CATCH(std::exception &exc){
       std::cout << "Unhandled exception: " << exc.what() << std::endl;
       return 1;
-   }
+   } BOOST_CATCH_END
    return 0;
 }