From 3c316154a4334eb567daaceb4c88355698847cf1 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 1 Jan 2008 21:28:25 +0000 Subject: [PATCH] I missed an explicit conversion when accessing a bucket. [SVN r42406] --- include/boost/unordered/detail/hash_table_impl.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/hash_table_impl.hpp b/include/boost/unordered/detail/hash_table_impl.hpp index 958581a2..9d4edf95 100644 --- a/include/boost/unordered/detail/hash_table_impl.hpp +++ b/include/boost/unordered/detail/hash_table_impl.hpp @@ -434,7 +434,6 @@ namespace boost { return buckets_ + static_cast(bucket_count_); } - iterator_base begin() const { return size_ @@ -449,7 +448,7 @@ namespace boost { link_ptr begin(size_type n) const { - return buckets_[n].next_; + return (buckets_ + static_cast(n))->next_; } link_ptr end(size_type) const