|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80410 - trunk/boost/unordered/detail
From: dnljms_at_[hidden]
Date: 2012-09-05 15:01:18
Author: danieljames
Date: 2012-09-05 15:01:17 EDT (Wed, 05 Sep 2012)
New Revision: 80410
URL: http://svn.boost.org/trac/boost/changeset/80410
Log:
Unordered: Re-initialise reused nodes.
Text files modified:
trunk/boost/unordered/detail/buckets.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: trunk/boost/unordered/detail/buckets.hpp
==============================================================================
--- trunk/boost/unordered/detail/buckets.hpp (original)
+++ trunk/boost/unordered/detail/buckets.hpp 2012-09-05 15:01:17 EDT (Wed, 05 Sep 2012)
@@ -487,6 +487,7 @@
assign_impl(v);
node_pointer p = nodes_;
nodes_ = static_cast<node_pointer>(p->next_);
+ p->init(static_cast<typename node::link_pointer>(p));
p->next_ = link_pointer();
return p;
}
@@ -502,6 +503,7 @@
move_assign_impl(v);
node_pointer p = nodes_;
nodes_ = static_cast<node_pointer>(p->next_);
+ p->init(static_cast<typename node::link_pointer>(p));
p->next_ = link_pointer();
return p;
}
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