From e01a5cafe834d9971ed0cc6dcb21dea2ebde5ab6 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 7 Nov 2021 11:56:58 -0500 Subject: [PATCH] Update parallel_hash_map_test.cc --- tests/parallel_hash_map_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/parallel_hash_map_test.cc b/tests/parallel_hash_map_test.cc index a740d4d..3bfb1e6 100644 --- a/tests/parallel_hash_map_test.cc +++ b/tests/parallel_hash_map_test.cc @@ -107,10 +107,10 @@ TEST(THIS_TEST_NAME, ThreadSafeContains) { Map m = { {1, 7}, {2, 8}, {5, 11} }; // increment all values by 1 - m.for_each_m([](auto &pair) { ++pair.second; }); + m.for_each_m([](Map::value_type &pair) { ++pair.second; }); int counter = 0; - m.for_each([&counter](auto const &pair) { + m.for_each([&counter](const Map::value_type &pair) { ++counter; EXPECT_EQ(pair.first + 7, pair.second); });