aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/end2end
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2015-03-24 10:36:08 -0700
committerGravatar Vijay Pai <vpai@google.com>2015-03-24 10:36:08 -0700
commit82dd80abc6fffab0f0bcff406dbd0750a6a45b37 (patch)
tree2015139aa7e4951be748b52d81ffacb7b36a04e5 /test/cpp/end2end
parent8ba8cfe143d47c8c9b14cd0cb0fbf968112cfc9c (diff)
Elminate range-based fors and work around some other limitations in older compilers
Diffstat (limited to 'test/cpp/end2end')
-rw-r--r--test/cpp/end2end/generic_end2end_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/end2end/generic_end2end_test.cc b/test/cpp/end2end/generic_end2end_test.cc
index 711f1b9540..11998a7cb7 100644
--- a/test/cpp/end2end/generic_end2end_test.cc
+++ b/test/cpp/end2end/generic_end2end_test.cc
@@ -83,8 +83,8 @@ bool ParseFromByteBuffer(ByteBuffer* buffer, grpc::protobuf::Message* message) {
buffer->Dump(&slices);
grpc::string buf;
buf.reserve(buffer->Length());
- for (const Slice& s : slices) {
- buf.append(reinterpret_cast<const char*>(s.begin()), s.size());
+ for (auto s = slices.begin(); s != slices.end(); s++) {
+ buf.append(reinterpret_cast<const char*>(s->begin()), s->size());
}
return message->ParseFromString(buf);
}