Boost C++ Libraries: Ticket #2975: in boost::unordered, incorrect prime_list_template<T>::length https://svn.boost.org/trac10/ticket/2975 <p> In boost/unordered/detail/hash_table.hpp, line 89-90, there is the definition </p> <blockquote> <p> template&lt;typename T&gt; std::ptrdiff_t const prime_list_template&lt;T&gt;::length = 28; </p> </blockquote> <p> I believe 28 should be 40 (the number of primes in prime_list_template&lt;T&gt;::value[])...? Otherwise, it seems resizing your hash table past 1.5 million buckets does no good... </p> <p> Sorry if this has already been reported, but I couldn't find anything when searching the bug tracker. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2975 Trac 1.4.3 Daniel James Wed, 29 Apr 2009 09:50:35 GMT status changed https://svn.boost.org/trac10/ticket/2975#comment:1 https://svn.boost.org/trac10/ticket/2975#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> How embarrasing! Thanks for reporting this. </p> <p> Duplicates are fine by me, a duplicated bug report is better than no reports. And frankly, if someone had reported this and I hadn't fixed it, I'd deserve much worse. </p> Ticket Daniel James Wed, 29 Apr 2009 10:05:21 GMT <link>https://svn.boost.org/trac10/ticket/2975#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2975#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/52658" title="Fix the length of the prime number list. Refs #2975">[52658]</a>) Fix the length of the prime number list. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2975" title="#2975: Bugs: in boost::unordered, incorrect prime_list_template&lt;T&gt;::length (closed: fixed)">#2975</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Fri, 01 May 2009 19:02:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2975#comment:3 https://svn.boost.org/trac10/ticket/2975#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/52707" title="Last minute merge, remove google analytics script tags and fixes ...">[52707]</a>) Last minute merge, remove google analytics script tags and fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2975" title="#2975: Bugs: in boost::unordered, incorrect prime_list_template&lt;T&gt;::length (closed: fixed)">#2975</a>. </p> <p> Merged revisions 52665,52674 via svnmerge from <a class="ext-link" href="https://svn.boost.org/svn/boost/trunk"><span class="icon">​</span>https://svn.boost.org/svn/boost/trunk</a> </p> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/52665" title="Remove google analytics script tags.">r52665</a> | danieljames | 2009-04-29 22:16:10 +0100 (Wed, 29 Apr 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Remove google analytics script tags. </p> </blockquote> <p> ........ </p> <blockquote> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/52674" title="Fix the prime number list length in unordered.">r52674</a> | danieljames | 2009-04-30 06:10:57 +0100 (Thu, 30 Apr 2009) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Fix the prime number list length in unordered. </p> </blockquote> <p> ........ </p> Ticket