From d5605671bd26b25b32eb73c9fb61f94d3407b181 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 2 May 2024 10:22:14 +0200 Subject: [PATCH] avoided shadowed local variable warnings --- test/unordered/stats_tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unordered/stats_tests.cpp b/test/unordered/stats_tests.cpp index 45afe5e2..09d4bdbe 100644 --- a/test/unordered/stats_tests.cpp +++ b/test/unordered/stats_tests.cpp @@ -148,8 +148,8 @@ template void test_stats() test::random_values l(10000, test::sequential); std::vector v(l.begin(), l.end()); - thread_runner(v, [&c](boost::span s) { - for (auto const& x : s) { + thread_runner(v, [&c](boost::span sp) { + for (auto const& x : sp) { c.insert(x); } }); @@ -184,8 +184,8 @@ template void test_stats() test::random_values l2(15000, test::sequential); std::vector v2(l2.begin(), l2.end()); std::atomic found = 0, not_found = 0; - thread_runner(v2, [&cc, &found, ¬_found](boost::span s) { - for (auto const& x : s) { + thread_runner(v2, [&cc, &found, ¬_found](boost::span sp) { + for (auto const& x : sp) { if(cc.contains(test::get_key(x))) ++found; else ++not_found; }