// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////
-#include <boost/interprocess/detail/config_begin.hpp>
+
//[doc_anonymous_conditionB
#include <boost/interprocess/shared_memory_object.hpp>
#include <boost/interprocess/mapped_region.hpp>
,read_write //read-write mode
);
- try{
+ BOOST_TRY{
//Map the whole shared memory in this process
mapped_region region
(shm //What to map
}
while(!end_loop);
}
- catch(interprocess_exception &ex){
+ BOOST_CATCH(interprocess_exception &ex){
std::cout << ex.what() << std::endl;
return 1;
- }
+ } BOOST_CATCH_END
return 0;
}
//]
-#include <boost/interprocess/detail/config_end.hpp>
+