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; }