/* * PROGRAM TEST for exchanging a string through a shared memory */ #include #include using namespace std; namespace intp = boost::interprocess; int main ( int argc, char* argv[] ) { try { // *** OPENING THE SHARED MEMORY *** // Opening a managed shared memory segment intp::managed_shared_memory segment (intp::open_only,"str_mem"); // *** FINDING THE STRING *** // Find the object string *opts = (segment.find ("opts")).first; // Check that is found if ( opts==NULL ) { cout<c_str() = \t"<c_str()<