forked from boostorg/unordered
get_for_erase can be static because all the required information is in the iterator.
[SVN r41930]
This commit is contained in:
1 parent
ec7e2a6c8a
commit
0650002b4f
1 file changed
+2
-2
@@ -532,7 +532,7 @@ namespace boost {
|
||||
// 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 @@ namespace boost {
|
||||
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_;
|
||||
|
||||
Reference in new issue
Block a user