mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Replace BOOST_TRY/CATCH family macros with BOOST_INTERPROCESS_TRY/CATCH
This commit is contained in:
@@ -17,7 +17,7 @@ using namespace boost::interprocess;
|
||||
|
||||
int main ()
|
||||
{
|
||||
BOOST_TRY{
|
||||
BOOST_INTERPROCESS_TRY{
|
||||
//Open a message queue.
|
||||
message_queue mq
|
||||
(open_only //only open
|
||||
@@ -35,11 +35,11 @@ int main ()
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
BOOST_CATCH(interprocess_exception &ex){
|
||||
BOOST_INTERPROCESS_CATCH(interprocess_exception &ex){
|
||||
message_queue::remove("message_queue");
|
||||
std::cout << ex.what() << std::endl;
|
||||
return 1;
|
||||
} BOOST_CATCH_END
|
||||
} BOOST_INTERPROCESS_CATCH_END
|
||||
message_queue::remove("message_queue");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user