From 5459f1d88e763ad8f8c0d43fa6e618cfe2a80336 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 17 Nov 2016 14:35:30 +0100 Subject: [PATCH] dnsdist: Don't use a const_iterator for erasing Some versions of gcc don't support that, even though it's required by C++11. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158 --- pdns/dnsdist-lua2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-lua2.cc b/pdns/dnsdist-lua2.cc index 099fbf503..c93788d54 100644 --- a/pdns/dnsdist-lua2.cc +++ b/pdns/dnsdist-lua2.cc @@ -990,7 +990,7 @@ void moreLua(bool client) g_lua.writeFunction("unregisterDynBPFFilter", [](std::shared_ptr dbpf) { if (dbpf) { - for (auto it = g_dynBPFFilters.cbegin(); it != g_dynBPFFilters.cend(); it++) { + for (auto it = g_dynBPFFilters.begin(); it != g_dynBPFFilters.end(); it++) { if (*it == dbpf) { g_dynBPFFilters.erase(it); break; -- 2.40.0