Fix -Wdeprecated-this-capture warning

`this` needs to be explicitly captured to avoid the warning.
pull/17882/head
Noah Watkins 6 months ago
parent 0c8c922681
commit 348ce1b8b2
  1. 2
      src/google/protobuf/map.cc

@ -120,7 +120,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) {

Loading…
Cancel
Save