Replace binary_funciton for C++17 Support (#19117)

This commit is contained in:
Tai-Yuan Kuo 2018-10-16 16:51:54 +08:00 committed by minggo
parent b70a6a6def
commit 05ae5f7e83
1 changed files with 21 additions and 21 deletions

View File

@ -201,7 +201,7 @@ public:
std::string _string; std::string _string;
}; };
struct StringCompare : public std::binary_function<__String *, __String *, bool> { struct StringCompare : public std::function<bool(__String *, __String *)> {
public: public:
bool operator() (__String * a, __String * b) const { bool operator() (__String * a, __String * b) const {
return strcmp(a->getCString(), b->getCString()) < 0; return strcmp(a->getCString(), b->getCString()) < 0;