20 Nov
2007
20 Nov
'07
10:15 a.m.
Hi, I'm trying to use a offset_ptr<volatile int> to point to a piece of shared memory that can be changed by another process without other synchronization mechanisms. But I get this kind of errors: offset_ptr.hpp:116: error: invalid conversion from 'volatile void*' to 'const void*' offset_ptr.hpp:116: error: initializing argument 1 of 'void boost::interprocess::offset_ptr<T>::set_offset(const void*) [with PointedType = volatile int]' Basically it is not possible to call set_offset when the pointed type is volatile. Is this a feature or a bug? (If it is a bug I'll happily enter it into trac). Lars