From 6a87191d7beb390cf380f529df644462910bdb65 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 7 Jan 2008 19:44:13 +0000 Subject: [PATCH] Add missing 'use namespace std'. Which I should have done when I was told about them before. Sorry. [SVN r42575] --- include/boost/unordered/detail/hash_table_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/unordered/detail/hash_table_impl.hpp b/include/boost/unordered/detail/hash_table_impl.hpp index 9a514c63..5ec272bb 100644 --- a/include/boost/unordered/detail/hash_table_impl.hpp +++ b/include/boost/unordered/detail/hash_table_impl.hpp @@ -1225,6 +1225,8 @@ namespace boost { // no throw size_type max_size() const { + using namespace std; + // size < mlf_ * count return float_to_size_t(ceil( max_bucket_count() * mlf_)) - 1; @@ -1303,6 +1305,8 @@ namespace boost { // factor. This is to try to avoid excessive rehashes. bool reserve_extra(size_type n) { + using namespace std; + bool need_to_reserve = n >= max_load_; // throws - basic: if (need_to_reserve) {