summaryrefslogtreecommitdiff
path: root/dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-03-11 01:49:36 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-03-11 01:49:36 +0000
commitcf7807d7aea23a99a144afceaba961cfed652b5f (patch)
treeffd2c781c27e0b7e72152a685a04938a2b7966f0 /dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch
parent7c5ebaf83da4c538dd11b56fdd5dfdf39dcbc096 (diff)
gentoo auto-resync : 11:03:2025 - 01:49:36HEADmaster
Diffstat (limited to 'dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch')
-rw-r--r--dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch b/dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch
new file mode 100644
index 000000000000..570ff7ebdf1d
--- /dev/null
+++ b/dev-util/gengetopt/files/gengetopt-2.23.1-fix-c17.patch
@@ -0,0 +1,21 @@
+unary_function removed in C++17. It can just be deleted.
+--- a/src/gm_utils.h
++++ b/src/gm_utils.h
+@@ -117,7 +117,7 @@
+ * Function object to print something into a stream (to be used with for_each)
+ */
+ template<class T>
+-struct print_f : public std::unary_function<T, void>
++struct print_f
+ {
+ print_f(std::ostream& out, const string &s = ", ") : os(out), sep(s) {}
+ void operator() (T x) { os << x << sep; }
+@@ -129,7 +129,7 @@
+ * Function object to print a pair into two streams (to be used with for_each)
+ */
+ template<class T>
+-struct pair_print_f : public std::unary_function<T, void>
++struct pair_print_f
+ {
+ pair_print_f(std::ostream& out1, std::ostream& out2, const string &s = ", ") :
+ os1(out1), os2(out2), sep(s) {}