From: Francesco Chemolli Date: Mon, 10 Feb 2014 09:19:56 +0000 (+0100) Subject: Make ESICustomParser::parse c++98-compatible X-Git-Tag: SQUID_3_5_0_1~379^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4814631e1230cd1474e97fd450fdc147d428727e;p=thirdparty%2Fsquid.git Make ESICustomParser::parse c++98-compatible --- 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) == '/')