1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: stopping using std::binary_function, to build with g++-12
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012979
Forwarded: gordon@cshl.edu
Last-Update: 2022-06-17
--- a/src/gtextutils/natsort.h
+++ b/src/gtextutils/natsort.h
@@ -78,7 +78,7 @@
#include <string>
-struct natural_sort_predicate : public std::binary_function<std::string, std::string, bool>
+struct natural_sort_predicate
{
bool operator() ( const std::string& s1, const std::string& s2 )
{
@@ -86,7 +86,7 @@
}
};
-struct natural_sort_ignore_case_predicate : public std::binary_function<std::string, std::string, bool>
+struct natural_sort_ignore_case_predicate
{
bool operator() ( const std::string& s1, const std::string& s2 )
{
|