]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove reference to deprecated std::binary_function (#1068)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 6 Jun 2022 08:58:57 +0000 (08:58 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 8 Jun 2022 09:01:57 +0000 (09:01 +0000)
C++11 deprecates std::binary_function. C++17 removes it.
It only provides typedefs that are unused since C++11.

src/HttpHeaderTools.h

index d017dfe5701c85043df6c8d00aa0a5ecd1b17fb5..372086453e78d15e9963175747fcb59e28ccfe41 100644 (file)
@@ -67,7 +67,7 @@ public:
 private:
     /// Case-insensitive std::string "less than" comparison functor.
     /// Fast version recommended by Meyers' "Effective STL" for ASCII c-strings.
-    class NoCaseLessThan: public std::binary_function<std::string, std::string, bool>
+    class NoCaseLessThan
     {
     public:
         bool operator()(const std::string &lhs, const std::string &rhs) const {