From 1d03bbe213144500a11b83a258952c06ae37e043 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 5 Sep 2012 19:01:17 +0000 Subject: [PATCH] Unordered: Re-initialise reused nodes. [SVN r80410] --- include/boost/unordered/detail/buckets.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/unordered/detail/buckets.hpp b/include/boost/unordered/detail/buckets.hpp index 98896ede..14314398 100644 --- a/include/boost/unordered/detail/buckets.hpp +++ b/include/boost/unordered/detail/buckets.hpp @@ -487,6 +487,7 @@ namespace boost { namespace unordered { namespace detail { assign_impl(v); node_pointer p = nodes_; nodes_ = static_cast(p->next_); + p->init(static_cast(p)); p->next_ = link_pointer(); return p; } @@ -502,6 +503,7 @@ namespace boost { namespace unordered { namespace detail { move_assign_impl(v); node_pointer p = nodes_; nodes_ = static_cast(p->next_); + p->init(static_cast(p)); p->next_ = link_pointer(); return p; }