From f76af2d0c88b5426f1d1d599897537810441a7c4 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 22 Sep 2009 22:39:00 +0000 Subject: [PATCH] Another std::max. [SVN r56362] --- include/boost/unordered/detail/table.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/table.hpp b/include/boost/unordered/detail/table.hpp index 9e80078b..4e7a5811 100644 --- a/include/boost/unordered/detail/table.hpp +++ b/include/boost/unordered/detail/table.hpp @@ -406,8 +406,8 @@ namespace boost { namespace unordered_detail { template inline void hash_table::create_for_insert(std::size_t size) { - std::size_t min_buckets = this->min_buckets_for_size(size); - if(min_buckets > this->bucket_count_) this->bucket_count_ = min_buckets; + this->bucket_count_ = (std::max)(this->bucket_count_, + this->min_buckets_for_size(size)); this->create_buckets(); this->init_buckets(); }