Boost logo

Boost Users :

From: Lars Hagström (lars_at_[hidden])
Date: 2007-11-20 05:15:47


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




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net