Opened 15 years ago
Closed 15 years ago
#1466 closed Bugs (fixed)
offset_ptr to volatile int?!
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | Boost 1.35.0 | Component: | interprocess |
Version: | Boost 1.34.1 | Severity: | Problem |
Keywords: | Cc: |
Description
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.
Change History (1)
comment:1 by , 15 years ago
Milestone: | To Be Determined → Boost 1.35.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Changed offset_ptr implementation to support volatile values. Added a test checking offset_ptr. SVN revision: 41281