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

@@ -17,7 +17,7 @@ using namespace boost::interprocess;
int main ()
{
try{
BOOST_TRY{
//Erase previous message queue
message_queue::remove("message_queue");
@@ -34,10 +34,10 @@ int main ()
mq.send(&i, sizeof(i), 0);
}
}
catch(interprocess_exception &ex){
BOOST_CATCH(interprocess_exception &ex){
std::cout << ex.what() << std::endl;
return 1;
}
} BOOST_CATCH_END
return 0;
}