From aa96d8750262e6f18b5c60a76565c84604a4a5ed Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 11 Feb 2022 10:31:34 -0800 Subject: [PATCH] Fix shadowing warning in early versions of gcc --- include/boost/unordered/detail/implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index a4ae2222..02ae8fc2 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -3815,7 +3815,7 @@ namespace boost { // no throw template - 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;