Should an object placed in an IPC shared-mem region be declared volatile, to alert the compiler that the object's internal values could change at any time? Or would that be useless unless the internal values themselves are declared volatile?
I have an object stored in a shared memory region. I use placement new to build the object there. Should I declare it volatile?