Re: [Boost-bugs] [Boost C++ Libraries] #12367: Using an offset_ptr type as value for multi_index_container causes compile error with 1.59+

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12367: Using an offset_ptr type as value for multi_index_container causes compile error with 1.59+
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-08 16:26:10


#12367: Using an offset_ptr type as value for multi_index_container causes compile
error with 1.59+
-------------------------------------+-------------------------------------
  Reporter: Michael Watkins | Owner: joaquin
  <michael.watkins2@…> | Status: new
      Type: Bugs | Component: multi_index
 Milestone: To Be Determined | Severity: Showstopper
   Version: Boost 1.59.0 | Keywords: multi_index
Resolution: | multi_index_container interprocess
                                     | offset_ptr
-------------------------------------+-------------------------------------

Comment (by joaquin):

 Hi Michael,

 Sorry about my late answering, I wasn't monitoring the email inbox these
 tickets notify to.

 As for your problem, I ''think'' it is a rather bug having to do with
 `boost::interprocess:offset_ptr` convertibility machinery. I'll ty to
 isolate this into something I can go with to Boost.Interprocess's author.
 In the meantime, please try replacing line 37 of
 boost/multi_index/detail/raw_ptr.hpp:

 {{{
   return p==Pointer(0)?0:&*p;
 }}}
 with
 {{{
   return !p?0:&*p;

 }}}
 Could you please report back if this solves your problem? Thanks for
 spotting this bug.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12367#comment:1>
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:20 UTC