This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 7203143db805add26c2cdb86bd6a74d740c107a0 Author: Bryan Call <bc...@apache.org> AuthorDate: Fri Nov 22 11:10:15 2019 +0800 Fixed build issue with clang5 and Extendible (cherry picked from commit 0cf7e5953aec06d4dafb183861afe918763cbf33) --- include/tscore/Extendible.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/tscore/Extendible.h b/include/tscore/Extendible.h index 6e2d306..16630ed 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 based 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));