Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56362 - trunk/boost/unordered/detail
From: daniel_james_at_[hidden]
Date: 2009-09-22 18:39:01


Author: danieljames
Date: 2009-09-22 18:39:00 EDT (Tue, 22 Sep 2009)
New Revision: 56362
URL: http://svn.boost.org/trac/boost/changeset/56362

Log:
Another std::max.
Text files modified:
   trunk/boost/unordered/detail/table.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/unordered/detail/table.hpp
==============================================================================
--- trunk/boost/unordered/detail/table.hpp (original)
+++ trunk/boost/unordered/detail/table.hpp 2009-09-22 18:39:00 EDT (Tue, 22 Sep 2009)
@@ -406,8 +406,8 @@
     template <class H, class P, class A, class G, class K>
     inline void hash_table<H, P, A, G, K>::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();
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk