Re: [Boost-bugs] [Boost C++ Libraries] #5230: Interprocess shared memory between 32 and 64 bit processes

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5230: Interprocess shared memory between 32 and 64 bit processes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-28 13:11:46


#5230: Interprocess shared memory between 32 and 64 bit processes
--------------------------------------+-------------------------------------
  Reporter: tgermer@… | Owner: igaztanaga
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: interprocess
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: shared memory 32 64 bit
--------------------------------------+-------------------------------------

Comment (by anonymous):

 offset_ptr uses its template parameter {{{OffsetType}}} for its internal
 representation. That means it depends on you how large it is. Per default,
 {{{OffsetType=size_t}}}, which is 4 bytes for 32 bit programs. In
 32/64-bit mixed applications, you should indeed take an 8-byte offset_ptr,
 for example:
 {{{offset_ptr<void, int, unsigned long long> }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5230#comment:18>
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:50:06 UTC