id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 3849,intrusive::unordered_set::suggested_lower_bucket_count,ef@…,Ion Gaztañaga,"The above static method crashes or doesn't return the correct value.[[BR]] Code in boost 1.41 is:[[BR]] static size_type suggested_lower_bucket_count(size_type n)[[BR]] {[[BR]] const std::size_t *primes = &detail::prime_list_holder<0>::prime_list[0];[[BR]] const std::size_t *primes_end = primes + detail::prime_list_holder<0>::prime_list_size;[[BR]] size_type const* bound = std::upper_bound(primes, primes_end, n);[[BR]] if(bound != primes_end)[[BR]] bound--;[[BR]] return size_type(*bound);[[BR]] }[[BR]] I think it should be:[[BR]] static size_type suggested_lower_bucket_count(size_type n)[[BR]] {[[BR]] const std::size_t *primes = &detail::prime_list_holder<0>::prime_list[0];[[BR]] const std::size_t *primes_end = primes + detail::prime_list_holder<0>::prime_list_size;[[BR]] size_type const* bound = std::upper_bound(primes, primes_end, n);[[BR]] if('''bound != primes''')[[BR]] bound--;[[BR]] return size_type(*bound);[[BR]] }[[BR]] Thank you,[[BR]] Etienne",Bugs,closed,Boost 1.45.0,intrusive,Boost 1.41.0,Problem,fixed,,