Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/google/protobuf/map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ UntypedMapBase::TypeInfo UntypedMapBase::GetTypeInfoDynamic(
void UntypedMapBase::InsertOrReplaceNodes(Arena* arena, NodeBase* list,
map_index_t count) {
if (ABSL_PREDICT_FALSE(count == 0)) return;
VisitKeyType([=](auto key_type) {
VisitKeyType([this, arena, list, count](auto key_type) {
using Key = typename decltype(key_type)::type;
static_cast<KeyMapBase<Key>&>(*this).InsertOrReplaceNodes(
arena, static_cast<typename KeyMapBase<Key>::KeyNode*>(list), count);
Expand Down
Loading