|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85310 - trunk/boost/intrusive
From: igaztanaga_at_[hidden]
Date: 2013-08-11 18:17:14
Author: igaztanaga
Date: 2013-08-11 18:17:14 EDT (Sun, 11 Aug 2013)
New Revision: 85310
URL: http://svn.boost.org/trac/boost/changeset/85310
Log:
Fixed error when clear_on_destroy was made configurable. hashtable always needs to clear the bucket array to be able to reuse buckets.
Text files modified:
trunk/boost/intrusive/hashtable.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/intrusive/hashtable.hpp
==============================================================================
--- trunk/boost/intrusive/hashtable.hpp Sun Aug 11 18:15:57 2013 (r85309)
+++ trunk/boost/intrusive/hashtable.hpp 2013-08-11 18:17:14 EDT (Sun, 11 Aug 2013) (r85310)
@@ -1094,7 +1094,8 @@
, 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;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk