]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/test/windows_shared_memory_mapping_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / interprocess / test / windows_shared_memory_mapping_test.cpp
index 4ae8ee7afa1e7084527f91cfe8fb3e8a1bf53d2f..cace9abff47475258b96a04a3315174d8ae38640 100644 (file)
@@ -23,7 +23,7 @@ using namespace boost::interprocess;
 
 int main ()
 {
-   try{
+   BOOST_TRY{
       const char *names[2] = { test::get_process_id_name(), 0 };
       for(unsigned int i_name = 0; i_name < sizeof(names)/sizeof(names[0]); ++i_name)
       {
@@ -116,11 +116,11 @@ int main ()
          }
       }
    }
-   catch(std::exception &exc){
+   BOOST_CATCH(std::exception &exc){
       //shared_memory_object::remove(test::get_process_id_name());
       std::cout << "Unhandled exception: " << exc.what() << std::endl;
       return 1;
-   }
+   } BOOST_CATCH_END
 
    return 0;
 }