Hi All
I am testing my class using boost. The class has a shared_memory_object member :
class X
{
char* m_buffer;
boost::interprocess::shared_memory_object *m_sram;
public X(char *name)
{
m_buffer = (char*)malloc(128);
m_sram = new(std::nothrow) boost::interprocess::shared_memory_object(boost::interprocess::open_or_create_t,
name,
boost::interprocess::mode_t::read_write);
}
}
int main()
{
std::vector