Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-12-09 14:24:53


Author: danieljames
Date: 2007-12-09 14:24:52 EST (Sun, 09 Dec 2007)
New Revision: 41930
URL: http://svn.boost.org/trac/boost/changeset/41930

Log:
get_for_erase can be static because all the required information is in the iterator.
Text files modified:
   sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp (original)
+++ sandbox/unordered/boost/unordered/detail/hash_table_impl.hpp 2007-12-09 14:24:52 EST (Sun, 09 Dec 2007)
@@ -532,7 +532,7 @@
             // no throw
 
 #if BOOST_UNORDERED_HASH_EQUIVALENT
- link_ptr* get_for_erase(iterator_base r) const
+ static link_ptr* get_for_erase(iterator_base r)
             {
                 link_ptr n = r.local_.node_;
 
@@ -549,7 +549,7 @@
                 return it;
             }
 #else
- link_ptr* get_for_erase(iterator_base r) const
+ static link_ptr* get_for_erase(iterator_base r)
             {
                 link_ptr n = r.local_.node_;
                 link_ptr* it = &r.bucket_->next_;


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