Re: Hide _S_n_primes from user code

2015-04-27 Thread Jonathan Wakely
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

Re: Hide _S_n_primes from user code

2015-04-22 Thread Marek Polacek
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

Re: Hide _S_n_primes from user code

2015-04-22 Thread François Dumont
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