[Boost-bugs] [Boost C++ Libraries] #2689: Unordered containers: cache_begin not compatible with auto_unlink

Subject: [Boost-bugs] [Boost C++ Libraries] #2689: Unordered containers: cache_begin not compatible with auto_unlink
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-28 13:49:32


#2689: Unordered containers: cache_begin not compatible with auto_unlink
-----------------------------------------------+----------------------------
 Reporter: andysem | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: intrusive
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: unordered cache_begin auto_unlink |
-----------------------------------------------+----------------------------
 It looks like using cache_begin< true > option with unordered containers
 with link_mode< auto_unlink > can lead to subtle crashes in run time.
 Supposedly, the problem appears when the leading node of the container
 (the one that is pointed to by begin()) is deleted without explicitly
 erasing the element from the container. In that case begin() returns an
 iterator to a non-existing element.

 This issue is not highlighted in the docs or checked in the code. It would
 be great if the container checked this options combination and did not
 compile in the first place.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2689>
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:49:59 UTC