From 436cbd447de54192fcba869cffc899753fab139e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 11 Aug 2013 22:17:14 +0000 Subject: [PATCH] Fixed error when clear_on_destroy was made configurable. hashtable always needs to clear the bucket array to be able to reuse buckets. [SVN r85310] --- include/boost/intrusive/hashtable.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/intrusive/hashtable.hpp b/include/boost/intrusive/hashtable.hpp index 750ebab..fa43bfe 100644 --- a/include/boost/intrusive/hashtable.hpp +++ b/include/boost/intrusive/hashtable.hpp @@ -1094,7 +1094,8 @@ class hashtable_impl , VoidOrKeyHash, VoidOrKeyEqual, ValueTraits, BucketTraits> , private detail::clear_on_destructor_base < hashtable_impl - , is_safe_autounlink::type::link_mode>::value + , true //To always clear the bucket array + //is_safe_autounlink::type::link_mode>::value > { template friend class detail::clear_on_destructor_base;