]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5343: Fix GCC v14 not finding std::find() (#1672)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Tue, 13 Feb 2024 11:14:02 +0000 (11:14 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 13 Feb 2024 15:32:35 +0000 (15:32 +0000)
    Reply.cc:198: error: no matching function for call to find(...)

The required STL header was missed in 2023 commit 27c3677.

src/CachePeers.cc
src/ResolvedPeers.cc
src/acl/AtStepData.cc
src/auth/SchemesConfig.cc
src/cache_cf.cc
src/helper/Reply.cc
src/sbuf/List.cc
src/security/KeyData.cc

index 8ebac56bbaf84e85066d4a825627cd179f95dd3d..608a0bb16e23e3fe093b2bbfd773ce621d357f71 100644 (file)
@@ -10,6 +10,8 @@
 #include "CachePeers.h"
 #include "SquidConfig.h"
 
+#include <algorithm>
+
 CachePeer &
 CachePeers::nextPeerToPing(const size_t pollIndex)
 {
index a8251d66c0183959f4bb3d29804ce53f4237c037..84016e07c7dec9b6daa4bb1d589a02c28fb96b7f 100644 (file)
@@ -13,6 +13,8 @@
 #include "ResolvedPeers.h"
 #include "SquidConfig.h"
 
+#include <algorithm>
+
 ResolvedPeers::ResolvedPeers()
 {
     if (Config.forward_max_tries > 0)
index e106718e5bd7898f65d990bfffa223ee0704c729..4d39310d8f4bd44c527de0db09430269ddd8f73a 100644 (file)
@@ -16,6 +16,8 @@
 #include "sbuf/Stream.h"
 #include "wordlist.h"
 
+#include <algorithm>
+
 static inline const char *
 StepName(const XactionStep xstep)
 {
index c97b423ac1137dc39a6d0a3b3515f693aa2f1bdd..052340b58dbfabfc10f97043650bdea998087abb 100644 (file)
@@ -11,6 +11,8 @@
 #include "fatal.h"
 #include "parser/Tokenizer.h"
 
+#include <algorithm>
+
 static void
 addUnique(const SBuf &scheme, std::vector<SBuf> &vec)
 {
index c32900cd80f1eeb0f968cb5d106f08a47577f960..3bc6c1871d4256307ecff1343b465c6190f96f36 100644 (file)
@@ -94,6 +94,7 @@
 #include "snmp.h"
 #endif
 
+#include <algorithm>
 #if HAVE_GLOB_H
 #include <glob.h>
 #endif
index 93cd5c84322409740939156b7cf72540ec525415..2e5e92aa2be9101969292448a5dfd3b189f66a93 100644 (file)
@@ -17,6 +17,8 @@
 #include "rfc1738.h"
 #include "SquidString.h"
 
+#include <algorithm>
+
 Helper::Reply::Reply() :
     result(Helper::Unknown)
 {
index acc4fc06576ed6b4f3faf6b6ef8e1deb4262fe46..1e095c1fcb059298e5ade3b30df4d7746f3ec5b5 100644 (file)
@@ -10,6 +10,8 @@
 #include "sbuf/Algorithms.h"
 #include "sbuf/List.h"
 
+#include <algorithm>
+
 bool
 IsMember(const SBufList & sl, const SBuf &S, const SBufCaseSensitive case_sensitive)
 {
index f32b9bd3ab3031c847664a69932f2e7847946eb3..0ffd51b5aa020fc2f5271bdf47960d0bc7aeebe3 100644 (file)
@@ -15,6 +15,8 @@
 #include "ssl/bio.h"
 #include "ssl/gadgets.h"
 
+#include <algorithm>
+
 /// load the signing certificate and its chain, if any, from certFile
 /// \return true if the signing certificate was obtained
 bool