Boost Users :
Subject: Re: [Boost-users] How to keep a pointer on a shared data in a boost shared memory segment
From: Klebsch, Mario (Mario.Klebsch_at_[hidden])
Date: 2019-03-21 07:10:17
> To solve this, you store indexes or offsets relative to the base of the shared memory itself (or some other known field within the shared memory) instead of a "real" pointer.
I once saw a system, where pointers in shared memory were self-relative. It should be possible to wrap them in a pointer-like class.
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