Re: [Boost-bugs] [Boost C++ Libraries] #8698: Boost.Intrusive unordered_set should use different value for end()

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8698: Boost.Intrusive unordered_set should use different value for end()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-22 22:48:30


#8698: Boost.Intrusive unordered_set should use different value for end()
-------------------------------+------------------------
  Reporter: jody_boost@… | Owner: igaztanaga
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: intrusive
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+------------------------

Comment (by jody_boost@…):

 FWIW, I contrived the example to consistently demonstrate the problem. I
 actually encountered it in real code.

 Consider the case where the compiler reorders stack variables.

 Also, consider the case where you want to create the buckets and objects
 in sequential memory, to keep the buckets and memory objects close
 together.

 As a workaround, I currently construct the unordered set with
 BucketSize-1, so the one-past the end of the buffer address is never used
 for anything else.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8698#comment:4>
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:13 UTC