From b1f76095bf5a123c00cc895f32d242383ffff3ff Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 16 Oct 2020 23:11:14 -0400 Subject: [PATCH] compilation issue --- tests/parallel_hash_map_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parallel_hash_map_test.cc b/tests/parallel_hash_map_test.cc index 34d32be..535163a 100644 --- a/tests/parallel_hash_map_test.cc +++ b/tests/parallel_hash_map_test.cc @@ -40,6 +40,7 @@ TEST(THIS_TEST_NAME, ThreadSafeContains) { m.try_emplace_l(4, [](int& ) { assert(0); /* should not be called when value constructed */ }, 999); EXPECT_EQ(m[4], 999); +#if PHMAP_HAVE_CC17 // generic lambda // insert a value that is not already present. m.lazy_emplace_l(5, [](int& v) { assert(0); /* should not be called when value constructed */ v = 6; }, @@ -47,7 +48,6 @@ TEST(THIS_TEST_NAME, ThreadSafeContains) { EXPECT_EQ(m[5], 13); -#if PHMAP_HAVE_CC17 // generic lambda // change a value that is present m.lazy_emplace_l(5, [](int& v) { v = 6; },