From 4814631e1230cd1474e97fd450fdc147d428727e Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Mon, 10 Feb 2014 10:19:56 +0100 Subject: [PATCH] Make ESICustomParser::parse c++98-compatible --- src/esi/CustomParser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/esi/CustomParser.cc b/src/esi/CustomParser.cc index 7c29d86ba0..986406240c 100644 --- a/src/esi/CustomParser.cc +++ b/src/esi/CustomParser.cc @@ -205,7 +205,8 @@ ESICustomParser::parse(char const *dataToParse, size_t const lengthOfData, bool attribute = end + 1; } - theClient->start (tag + 1, const_cast(attributes.data()), attributes.size() >> 1); + // TODO: after c++11, replace &attributes.front() with attributes.data() + theClient->start (tag + 1, const_cast(&attributes.front()), attributes.size() >> 1); /* TODO: attributes */ if (*(tagEnd - 1) == '/') -- 2.47.2