restore header hooks to unused state

This commit is contained in:
Matei David
2014-04-24 20:06:19 -04:00
parent d7212a1a7c
commit c928fde885
3 changed files with 3 additions and 0 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

@@ -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());
} }
} }