Reverted wrong commit SHA-1: 62367b52e1 and removed include to recently deleted "detail/clear_on_destructor_base.hpp" file.

This commit is contained in:
Ion Gaztañaga
2014-04-25 18:32:40 +02:00
parent 62367b52e1
commit fc6d3cca5f
4 changed files with 3 additions and 1 deletions

View File

@@ -526,6 +526,7 @@ struct bstbase
( this->header_ptr() ( this->header_ptr()
, detail::node_disposer<detail::null_disposer, value_traits, AlgoType> , detail::node_disposer<detail::null_disposer, value_traits, AlgoType>
(detail::null_disposer(), &this->get_value_traits())); (detail::null_disposer(), &this->get_value_traits()));
node_algorithms::init(this->header_ptr());
} }
} }
}; };

View File

@@ -29,7 +29,6 @@
#include <boost/intrusive/detail/transform_iterator.hpp> #include <boost/intrusive/detail/transform_iterator.hpp>
#include <boost/intrusive/link_mode.hpp> #include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/detail/ebo_functor_holder.hpp> #include <boost/intrusive/detail/ebo_functor_holder.hpp>
#include <boost/intrusive/detail/clear_on_destructor_base.hpp>
#include <boost/intrusive/detail/utilities.hpp> #include <boost/intrusive/detail/utilities.hpp>
//Implementation utilities //Implementation utilities
#include <boost/intrusive/unordered_set_hook.hpp> #include <boost/intrusive/unordered_set_hook.hpp>

View File

@@ -205,6 +205,7 @@ class list_impl
{ {
if(is_safe_autounlink<ValueTraits::link_mode>::value){ if(is_safe_autounlink<ValueTraits::link_mode>::value){
this->clear(); this->clear();
node_algorithms::init(this->get_root_node());
} }
} }

View File

@@ -339,6 +339,7 @@ class slist_impl
{ {
if(is_safe_autounlink<ValueTraits::link_mode>::value){ if(is_safe_autounlink<ValueTraits::link_mode>::value){
this->clear(); this->clear();
node_algorithms::init(this->get_root_node());
} }
} }