Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4ce5b35

Browse files
committed
No capture
1 parent b39286b commit 4ce5b35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fml/container_unittests.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ namespace {
1313

1414
TEST(ContainerTest, MapEraseIf) {
1515
std::unordered_map<int, int> map = {{0, 1}, {2, 3}, {4, 5}};
16-
fml::erase_if(map, [&](auto it) { return it.first == 0 || it.second == 5; });
16+
17+
fml::erase_if(map, [](auto it) { return it->first == 0 || it->second == 5; });
18+
1719
EXPECT_EQ(map.size(), 1);
1820
EXPECT_TRUE(map.find(2) != map.end());
1921
}

0 commit comments

Comments
 (0)