changeset 30535:a8e988190128 stable

Remove usage of std::unary_function that has been removed in C++17. * liboctave/operators/Sparse-diag-op-defs.h (identity_val): Don't inherit from std::unary_function which has been removed in C++17.
author Gene Harvey <gharveymn@gmail.com>
date Fri, 24 Sep 2021 16:40:13 -0500
parents 022747aca7fe
children 9e47c6f6b548
files liboctave/operators/Sparse-diag-op-defs.h
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/operators/Sparse-diag-op-defs.h	Fri Sep 24 16:14:05 2021 -0500
+++ b/liboctave/operators/Sparse-diag-op-defs.h	Fri Sep 24 16:40:13 2021 -0500
@@ -104,9 +104,10 @@
 // FIXME: functors such as this should be gathered somewhere
 template <typename T>
 struct identity_val
-  : public std::unary_function <T, T>
 {
 public:
+  typedef T argument_type;
+  typedef T result_type;
   T operator () (const T x) { return x; }
 };