src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/utilities.hpp in passenger-6.0.7 vs src/cxx_supportlib/vendor-copy/websocketpp/websocketpp/utilities.hpp in passenger-6.0.8

- old
+ new

@@ -70,14 +70,12 @@ /// Helper less than functor for case insensitive find /** * Based on code from * http://stackoverflow.com/questions/3152241/case-insensitive-stdstring-find */ -struct ci_less : std::binary_function<std::string, std::string, bool> { +struct ci_less { // case-independent (ci) compare_less binary function - struct nocase_compare - : public std::binary_function<unsigned char,unsigned char,bool> - { + struct nocase_compare { bool operator() (unsigned char const & c1, unsigned char const & c2) const { return tolower (c1) < tolower (c2); } }; bool operator() (std::string const & s1, std::string const & s2) const {