From 75e3ce645c3fbe315a8384c2cc952467826623e0 Mon Sep 17 00:00:00 2001 From: Yuchen Zeng Date: Mon, 12 Sep 2016 11:11:29 -0700 Subject: [PATCH] Fix portability issues --- test/cpp/util/grpc_tool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc index 6657e464ac6..22155cb5ea3 100644 --- a/test/cpp/util/grpc_tool.cc +++ b/test/cpp/util/grpc_tool.cc @@ -292,7 +292,8 @@ bool GrpcTool::ListServices(int argc, const char** argv, if (FLAGS_l) { output = DescribeServiceList(service_list, desc_pool); } else { - for (auto const& service : service_list) { + for (auto const& service = service_list.begin(); + service != service_list.end(); service++) { output.append(service); output.append("\n"); }