Browse Source

c++17 deprecated std::binary_function

ithewei 5 years ago
parent
commit
05f73c2d7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      base/hstring.h

+ 1 - 1
base/hstring.h

@@ -54,7 +54,7 @@ public:
 typedef HV_MAP<std::string, std::string> KeyValue;
 
 // std::map<std::string, std::string, StringCaseLess>
-class StringCaseLess : public std::binary_function<std::string, std::string, bool> {
+class StringCaseLess : public std::less<std::string> {
 public:
     bool operator()(const std::string& lhs, const std::string& rhs) const {
         return stricmp(lhs.c_str(), rhs.c_str()) < 0;