diff --git a/test/core/util/test_lb_policies.cc b/test/core/util/test_lb_policies.cc index f8a19b79891..0c7e76fc68f 100644 --- a/test/core/util/test_lb_policies.cc +++ b/test/core/util/test_lb_policies.cc @@ -83,7 +83,7 @@ class ForwardingLoadBalancingPolicy : public LoadBalancingPolicy { MetadataVector CopyMetadataToVector( LoadBalancingPolicy::MetadataInterface* metadata) { MetadataVector result; - for (const auto& p : *metadata) { + for (auto p : *metadata) { result.push_back({std::string(p.first), std::string(p.second)}); } return result;