diff --git a/src/google/protobuf/map.cc b/src/google/protobuf/map.cc index 570b61bec8..da6ceb99d9 100644 --- a/src/google/protobuf/map.cc +++ b/src/google/protobuf/map.cc @@ -116,7 +116,7 @@ void UntypedMapBase::ClearTable(const ClearInput input) { ABSL_DCHECK_NE(num_buckets_, kGlobalEmptyTableSize); if (alloc_.arena() == nullptr) { - const auto loop = [=](auto destroy_node) { + const auto loop = [&, this](auto destroy_node) { const TableEntryPtr* table = table_; for (map_index_t b = index_of_first_non_null_, end = num_buckets_; b < end; ++b) {