mirror of https://github.com/axmolengine/axmol.git
Replace binary_funciton for C++17 Support (#19117)
This commit is contained in:
parent
b70a6a6def
commit
05ae5f7e83
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue