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:
@@ -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_;
|
||||||
|
Reference in New Issue
Block a user