get_for_erase can be static because all the required information is in the iterator.

[SVN r41930]
This commit is contained in:
Daniel James
2007-12-09 19:24:52 +00:00
parent ec7e2a6c8a
commit 0650002b4f

View File

@@ -532,7 +532,7 @@ namespace boost {
// no throw // no throw
#if BOOST_UNORDERED_HASH_EQUIVALENT #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_; link_ptr n = r.local_.node_;
@@ -549,7 +549,7 @@ namespace boost {
return it; return it;
} }
#else #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 n = r.local_.node_;
link_ptr* it = &r.bucket_->next_; link_ptr* it = &r.bucket_->next_;