From: Francesco Chemolli Date: Mon, 6 Jun 2022 08:58:57 +0000 (+0000) Subject: Remove reference to deprecated std::binary_function (#1068) X-Git-Tag: SQUID_6_0_1~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91d65f9cc61c70a709dcc5e0e08ad4d1726b6fe6;p=thirdparty%2Fsquid.git Remove reference to deprecated std::binary_function (#1068) C++11 deprecates std::binary_function. C++17 removes it. It only provides typedefs that are unused since C++11. --- diff --git a/src/HttpHeaderTools.h b/src/HttpHeaderTools.h index d017dfe570..372086453e 100644 --- a/src/HttpHeaderTools.h +++ b/src/HttpHeaderTools.h @@ -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 + class NoCaseLessThan { public: bool operator()(const std::string &lhs, const std::string &rhs) const {