mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Merge pull request #93 from cmazakas/key_eq-shadowing-fix
Fix shadowing warning in early versions of gcc
This commit is contained in:
@ -3815,7 +3815,7 @@ namespace boost {
|
||||
// no throw
|
||||
|
||||
template <class KeyEqual, class Key>
|
||||
std::size_t erase_key_equiv_impl(KeyEqual const& key_eq, Key const& k)
|
||||
std::size_t erase_key_equiv_impl(KeyEqual const& eq, Key const& k)
|
||||
{
|
||||
if (!this->size_)
|
||||
return 0;
|
||||
@ -3823,7 +3823,7 @@ namespace boost {
|
||||
std::size_t key_hash = policy::apply_hash(this->hash_function(), k);
|
||||
std::size_t bucket_index = this->hash_to_bucket(key_hash);
|
||||
link_pointer prev =
|
||||
this->find_previous_node_impl(key_eq, k, bucket_index);
|
||||
this->find_previous_node_impl(eq, k, bucket_index);
|
||||
if (!prev)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user