From 83ab4b4b9fd548450682ea729811bc6081acd696 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Wed, 1 May 2024 21:32:49 +0200 Subject: [PATCH] avoided unused-local-type warning --- 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 250b78eb..98ca10c6 100644 --- a/test/unordered/stats_tests.cpp +++ b/test/unordered/stats_tests.cpp @@ -117,7 +117,6 @@ void check_container_stats(const Stats& s1, const Stats& s2) template void test_stats() { - using value_type = typename Container::value_type; using allocator_type = typename Container::allocator_type; using stats = typename Container::stats; const bool full = true, empty = false; @@ -131,6 +130,7 @@ template void test_stats() test::reset_sequence(); #if defined(BOOST_UNORDERED_CFOA_TESTS) + using value_type = typename Container::value_type; test::random_values l(10000, test::sequential); std::vector v(l.begin(), l.end());