]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix build errors on CentOS 7 in rev.13712
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Nov 2014 04:33:21 +0000 (20:33 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Nov 2014 04:33:21 +0000 (20:33 -0800)
commitc70b36bdf9fd32919a938ded09e3edd0fb9ee129
tree72064b5dd870b8dd7168eb773ec7bf7a37202858
parent4f8d0a651fd5ca1f2e62f5917fb7f119390e33d6
Fix build errors on CentOS 7 in rev.13712

It turns out the RHEL and CentOS 7 STL definition does not quite match
up to official documentation of what their GCC version supports. In
particular the use of const_iterator on std::list containers.

Use auto instead of an explicit iterator. Allowing the compiler to select
whichever iterator is available and will work.
src/acl/MethodData.cc
src/acl/ProtocolData.cc