Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-01-07 14:44:13


Author: danieljames
Date: 2008-01-07 14:44:13 EST (Mon, 07 Jan 2008)
New Revision: 42575
URL: http://svn.boost.org/trac/boost/changeset/42575

Log:
Add missing 'use namespace std'. Which I should have done when I was told about
them before. Sorry.

Text files modified:
   trunk/boost/unordered/detail/hash_table_impl.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- trunk/boost/unordered/detail/hash_table_impl.hpp (original)
+++ trunk/boost/unordered/detail/hash_table_impl.hpp 2008-01-07 14:44:13 EST (Mon, 07 Jan 2008)
@@ -1225,6 +1225,8 @@
             // 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 @@
             // 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) {


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