소스 검색

c++17 deprecated std::binary_function

ithewei 5 년 전
부모
커밋
05f73c2d7a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;