Fixes #103 ("Use interprocess headers without exception handling")

This commit is contained in:
Ion Gaztañaga
2021-08-23 13:32:08 +02:00
parent f8d2da6a18
commit 4f0b3c2c93
68 changed files with 407 additions and 428 deletions

View File

@@ -28,7 +28,7 @@ file_mapping get_file_mapping()
int main ()
{
try{
BOOST_TRY{
const std::size_t FileSize = 99999*2;
{
//Create file with given size
@@ -164,11 +164,11 @@ int main ()
file_mapping ret(get_file_mapping());
}
}
catch(std::exception &exc){
BOOST_CATCH(std::exception &exc){
file_mapping::remove(get_filename().c_str());
std::cout << "Unhandled exception: " << exc.what() << std::endl;
throw;
}
BOOST_RETHROW
} BOOST_CATCH_END
file_mapping::remove(get_filename().c_str());
return 0;
}