I\'m using boost::interprocess to share objects between processes. I have two files, a \"server.cpp\" that generates a struct object and passes the object into a map with an
Some great info from previous posters led me to a simple answer of my own. Use a char array in the struct, then read it into a string as follows:
std::cout<first<<" "<second.ORDERTYPE<<" "<second.MYID)<<"\n";
here is the struct I speak of:
struct order {
char MYID[100];
int ORDERTYPE;
char DATE_UPDATED[64];
};
order o
here is how i passed the struct into memory:
m_pmap->insert(std::pair(i, (order)o));
now i am able to write a map of structs containing various types including strings, to memory, and retrieve them from memory.