[Boost-bugs] [Boost C++ Libraries] #9949: clear header node hooks upon intrusive container destruction

Subject: [Boost-bugs] [Boost C++ Libraries] #9949: clear header node hooks upon intrusive container destruction
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-04-25 00:21:10


#9949: clear header node hooks upon intrusive container destruction
------------------------------------+------------------------
 Reporter: Matei David <matei@…> | Owner: igaztanaga
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: intrusive
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: intrusive header hooks |
------------------------------------+------------------------
 In intrusive containers, the `safe_link` and `auto_unlink` hook types
 cause boost to reset the hooks to their default constructed state (usually
 `NULL`) upon removing an element from a container. That suggests a user
 could double check that nodes are indeed removed from all containers upon
 destruction, by checking that the hooks are set to `NULL`. Unfortunately,
 the check fails because, unlike all other regular nodes, the hooks of the
 container //header// nodes are not reset upon destruction of the
 container.

 I will create a pull request which rectifies this in `list`, `slist`, and
 `bstree`. I will drop it on top of the develop branch, which has the
 recent fix to bug #9940.

 I believe the change should have no negative impact.

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