[boost] [interprocess] offset_ptr to volatile int?!
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
Lars Hagström escribió:
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).
Enter a bug. I have never thought about volatile offset_ptrs, but that should be definitely possible.
Lars
Thanks, Ion
Done: http://svn.boost.org/trac/boost/ticket/1466 Thanks, Lars Ion Gaztañaga wrote:
Lars Hagström escribió:
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).
Enter a bug. I have never thought about volatile offset_ptrs, but that should be definitely possible.
Lars
Thanks,
Ion _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Ion Gaztañaga
-
Lars Hagström