Subject: [Boost-bugs] [Boost C++ Libraries] #2975: in boost::unordered, incorrect prime_list_template<T>::length
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-29 09:22:30
#2975: in boost::unordered, incorrect prime_list_template<T>::length
---------------------------------------------------+------------------------
Reporter: Jeffrey Hellrung <jhellrung_at_[hidden]> | Owner: danieljames
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: unordered
Version: Boost 1.38.0 | Severity: Problem
Keywords: |
---------------------------------------------------+------------------------
In boost/unordered/detail/hash_table.hpp, line 89-90, there is the
definition
template<typename T>
std::ptrdiff_t const prime_list_template<T>::length = 28;
I believe 28 should be 40 (the number of primes in
prime_list_template<T>::value[])...? Otherwise, it seems resizing your
hash table past 1.5 million buckets does no good...
Sorry if this has already been reported, but I couldn't find anything when
searching the bug tracker.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2975> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC