aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-09-12 11:11:29 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-09-12 11:11:29 -0700
commit75e3ce645c3fbe315a8384c2cc952467826623e0 (patch)
tree44fa1e2568017151b9211cda1cdbc7c28f1035b7 /test/cpp
parent20d6a10483d057822c888170b9788a10f7247666 (diff)
Fix portability issues
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/util/grpc_tool.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cpp/util/grpc_tool.cc b/test/cpp/util/grpc_tool.cc
index 6657e464ac..22155cb5ea 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");
}