From fc6d3cca5fd7e122c4b608df3e659c1120552975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 25 Apr 2014 18:32:40 +0200 Subject: [PATCH] Reverted wrong commit SHA-1: 62367b52e197b1dbca5ec8ba423a2ce3bfc89790 and removed include to recently deleted "detail/clear_on_destructor_base.hpp" file. --- include/boost/intrusive/bstree.hpp | 1 + include/boost/intrusive/hashtable.hpp | 1 - include/boost/intrusive/list.hpp | 1 + include/boost/intrusive/slist.hpp | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/intrusive/bstree.hpp b/include/boost/intrusive/bstree.hpp index d2850e9..ea0cbc8 100644 --- a/include/boost/intrusive/bstree.hpp +++ b/include/boost/intrusive/bstree.hpp @@ -526,6 +526,7 @@ struct bstbase ( this->header_ptr() , detail::node_disposer (detail::null_disposer(), &this->get_value_traits())); + node_algorithms::init(this->header_ptr()); } } }; diff --git a/include/boost/intrusive/hashtable.hpp b/include/boost/intrusive/hashtable.hpp index bbf4b70..ad3366a 100644 --- a/include/boost/intrusive/hashtable.hpp +++ b/include/boost/intrusive/hashtable.hpp @@ -29,7 +29,6 @@ #include #include #include -#include #include //Implementation utilities #include diff --git a/include/boost/intrusive/list.hpp b/include/boost/intrusive/list.hpp index ac845c4..f9bcb96 100644 --- a/include/boost/intrusive/list.hpp +++ b/include/boost/intrusive/list.hpp @@ -205,6 +205,7 @@ class list_impl { if(is_safe_autounlink::value){ this->clear(); + node_algorithms::init(this->get_root_node()); } } diff --git a/include/boost/intrusive/slist.hpp b/include/boost/intrusive/slist.hpp index fa88cd2..8307358 100644 --- a/include/boost/intrusive/slist.hpp +++ b/include/boost/intrusive/slist.hpp @@ -339,6 +339,7 @@ class slist_impl { if(is_safe_autounlink::value){ this->clear(); + node_algorithms::init(this->get_root_node()); } }