mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Fixes #103 ("Use interprocess headers without exception handling")
This commit is contained in:
@@ -204,12 +204,12 @@ int main ()
|
||||
delete stdlist;
|
||||
|
||||
//Fill heap buffer until is full
|
||||
try{
|
||||
BOOST_TRY{
|
||||
while(1){
|
||||
heaplist->insert(heaplist->end(), 0);
|
||||
}
|
||||
}
|
||||
catch(boost::interprocess::bad_alloc &){}
|
||||
BOOST_CATCH(boost::interprocess::bad_alloc &){} BOOST_CATCH_END
|
||||
|
||||
MyHeapList::size_type heap_list_size = heaplist->size();
|
||||
|
||||
@@ -237,12 +237,12 @@ int main ()
|
||||
}
|
||||
|
||||
//Fill user buffer until is full
|
||||
try{
|
||||
BOOST_TRY{
|
||||
while(1){
|
||||
userlist->insert(userlist->end(), 0);
|
||||
}
|
||||
}
|
||||
catch(boost::interprocess::bad_alloc &){}
|
||||
BOOST_CATCH(boost::interprocess::bad_alloc &){} BOOST_CATCH_END
|
||||
|
||||
MyUserList::size_type user_list_size = userlist->size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user