On 22/04/15 22:11 +0200, François Dumont wrote:
+constexpr auto __n_primes
+ = sizeof(__prime_list) / sizeof(unsigned long) - 1;
Normally I'd say
sizeof(__prime_list) / sizeof(*__prime_list) - 1
would be better, but since it's very unlikely we'll change the element
type in the
On Wed, Apr 22, 2015 at 09:39:48PM +0200, François Dumont wrote:
> Hello
>
> Here is a rather trivial patch, just code cleanup. Since we export
> _Prime_rehash_policy we do not need to expose the _S_n_primes anymore.
>
> * include/bits/hashtable_policy.h (_Prime_rehash_policy::_S_n_primes
With the patch this time.
On 22/04/2015 21:39, François Dumont wrote:
Hello
Here is a rather trivial patch, just code cleanup. Since we export
_Prime_rehash_policy we do not need to expose the _S_n_primes anymore.
* include/bits/hashtable_policy.h
(_Prime_rehash_policy::_S_n_primes