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]
This commit is contained in:
Ion Gaztañaga
2013-08-11 22:17:14 +00:00
parent 1edf4c995e
commit 436cbd447d

View File

@@ -1094,7 +1094,8 @@ class hashtable_impl
, VoidOrKeyHash, VoidOrKeyEqual, ValueTraits, BucketTraits>
, private detail::clear_on_destructor_base
< hashtable_impl<ValueTraits, VoidOrKeyHash, VoidOrKeyEqual, SizeType, BucketTraits, BoolFlags>
, is_safe_autounlink<detail::get_real_value_traits<ValueTraits>::type::link_mode>::value
, true //To always clear the bucket array
//is_safe_autounlink<detail::get_real_value_traits<ValueTraits>::type::link_mode>::value
>
{
template<class C, bool> friend class detail::clear_on_destructor_base;