Fix #739: removed usage of std::binary_function deprecated after C++11

This commit is contained in:
vsonnier
2019-06-02 18:56:00 +02:00
parent 0fa818c2fb
commit 9bf25b8feb
4 changed files with 4 additions and 29 deletions
+1 -9
View File
@@ -37,7 +37,7 @@ using namespace std;
/* map comparison function */
struct string_less : public std::binary_function<std::string,std::string,bool>
struct string_less
{
bool operator()(const std::string& a,const std::string& b) const
{
@@ -45,14 +45,6 @@ struct string_less : public std::binary_function<std::string,std::string,bool>
}
};
/* int comparison function */
struct int_less : public std::binary_function<int,int,bool>
{
bool operator()(int a,int b) const
{
return a < b;
}
};
/* Data Exceptions */