diff --git a/test/unordered/stats_tests.cpp b/test/unordered/stats_tests.cpp index 09d4bdbe..6f0dec20 100644 --- a/test/unordered/stats_tests.cpp +++ b/test/unordered/stats_tests.cpp @@ -183,7 +183,7 @@ 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; + std::atomic found{0}, not_found{0}; thread_runner(v2, [&cc, &found, ¬_found](boost::span sp) { for (auto const& x : sp) { if(cc.contains(test::get_key(x))) ++found;