Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-05-28 19:11:25


Author: danieljames
Date: 2008-05-28 19:11:25 EDT (Wed, 28 May 2008)
New Revision: 45885
URL: http://svn.boost.org/trac/boost/changeset/45885

Log:
More consistent implementations of insert_impl.

Text files modified:
   branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp | 6 ++----
   1 files changed, 2 insertions(+), 4 deletions(-)

Modified: branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp (original)
+++ branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp 2008-05-28 19:11:25 EDT (Wed, 28 May 2008)
@@ -1949,10 +1949,8 @@
 
                     // Nothing after this point can throw.
 
- link_ptr n = data_.link_node_in_bucket(a, bucket);
-
- return std::pair<iterator_base, bool>(
- iterator_base(bucket, n), true);
+ return std::pair<iterator_base, bool>(iterator_base(bucket,
+ data_.link_node_in_bucket(a, bucket)), true);
                 }
             }
 


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