Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-01-01 16:28:26


Author: danieljames
Date: 2008-01-01 16:28:25 EST (Tue, 01 Jan 2008)
New Revision: 42406
URL: http://svn.boost.org/trac/boost/changeset/42406

Log:
I missed an explicit conversion when accessing a bucket.
Text files modified:
   branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp | 3 +--
   1 files changed, 1 insertions(+), 2 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-01-01 16:28:25 EST (Tue, 01 Jan 2008)
@@ -434,7 +434,6 @@
                 return buckets_ + static_cast<difference_type>(bucket_count_);
             }
 
-
             iterator_base begin() const
             {
                 return size_
@@ -449,7 +448,7 @@
 
             link_ptr begin(size_type n) const
             {
- return buckets_[n].next_;
+ return (buckets_ + static_cast<difference_type>(n))->next_;
             }
 
             link_ptr end(size_type) const


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