$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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
Hi,
> 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.
73, Mario