summaryrefslogtreecommitdiff
path: root/media-libs/exempi/files/exempi-2.6.3-clang16-binary_function.patch
blob: bbe535ed1380e153d58328a2db0403117eddc1a3 (plain)
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
27
28
29
30
31
32
33
Bug: https://bugs.gentoo.org/910494
--- a/XMPFiles/source/PluginHandler/XMPAtoms.h
+++ b/XMPFiles/source/PluginHandler/XMPAtoms.h
@@ -83,8 +83,12 @@ enum
 
 #define XMPAtomNull emptyStr_K
 
-struct StringCompare : std::binary_function<const std::string &, const std::string &, bool>
+struct StringCompare
 {
+	public:
+		using first_argument_type = const std::string &;
+		using second_argument_type = const std::string &;
+		using result_type = bool;
 	bool operator() (const std::string & a, const std::string & b) const
 	{
 		return ( a.compare(b) < 0 );
--- a/XMPFilesPlugins/api/source/PluginRegistry.h
+++ b/XMPFilesPlugins/api/source/PluginRegistry.h
@@ -68,8 +68,12 @@ public:
 	
 private:
 
-	struct StringCompare : std::binary_function< const std::string &, const std::string &, bool >
+	struct StringCompare
 	{
+		public:
+			using first_argument_type = const std::string &;
+			using second_argument_type = const std::string &;
+			using result_type = bool;
 		bool operator()( const std::string & a, const std::string & b ) const
 		{
 			return ( a.compare(b) < 0 );