Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/include/tscore/Extendible.h b/include/tscore/Extendible.h
- index 6e2d30672..2d806e344 100644
- --- a/include/tscore/Extendible.h
- +++ b/include/tscore/Extendible.h
- @@ -720,7 +720,10 @@ serialize(std::ostream &os, T const &t)
- for (const auto &kv : schema.fields) {
- name_width = max(name_width, kv.first.length());
- }
- - for (const auto &[fname, field] : schema.fields) {
- + // TODO: clang-5 didn't like the use of a range for here, change later
- + for (auto it = schema.fields.begin(); it != schema.fields.end(); ++it) {
- + auto &fname = it->first;
- + auto &field = it->second;
- ink_assert(field.serializer);
- os << setw(indent) << "" << setw(name_width) << right << fname << ": ";
- field.serializer(os, details::FieldPtrGet(t, field));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement