Subject: [Boost-bugs] [Boost C++ Libraries] #1466: offset_ptr to volatile int?!
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-21 15:32:05
#1466: offset_ptr to volatile int?!
-----------------------------------------------+----------------------------
Reporter: Lars Hagström <lars_at_[hidden]> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.34.1 | Severity: Problem
Keywords: |
-----------------------------------------------+----------------------------
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.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1466>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC