From 072a80a3f2bc123a400f8ca33624b9048a778d26 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 18 Dec 2007 23:30:52 +0000 Subject: [PATCH] No need to create a node_constructor for every iteration. [SVN r42158] --- include/boost/unordered/detail/hash_table_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/hash_table_impl.hpp b/include/boost/unordered/detail/hash_table_impl.hpp index 0365a7b3..6c355244 100644 --- a/include/boost/unordered/detail/hash_table_impl.hpp +++ b/include/boost/unordered/detail/hash_table_impl.hpp @@ -1561,9 +1561,9 @@ namespace boost { else { // Only require basic exception safety here reserve_extra(size() + distance); + node_constructor a(this->allocators_); for (; i != j; ++i) { - node_constructor a(this->allocators_); a.construct(*i); key_type const& k = extract_key(a.get()->value_);