From 6212f2642c474d117054bff3fb4a7e9f1939264f Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 2 May 2024 11:15:29 +0200 Subject: [PATCH] avoided spurious check of deleted copy ctor --- test/unordered/stats_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;