changed: remove use of deprecated std::binary_function

this was deprecated in c++11 and removed in c++17. since
there is no actual need for the base class, simply remove it
This commit is contained in:
Arne Morten Kvarving 2023-05-31 09:36:39 +02:00
parent 0c78a3e1b9
commit 67f5970ff8
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@
namespace Opm {
namespace ImplicitTransportDefault {
template <typename T>
class MaxAbs : public ::std::binary_function <double, T, double> {
class MaxAbs {
public:
double
operator()(double x, const T& y) {
@ -56,7 +56,7 @@ namespace Opm {
};
template <typename T>
class SumAbs : public ::std::binary_function <double, T, double> {
class SumAbs {
public:
double
operator()(double x, const T& y) {
@ -68,7 +68,7 @@ namespace Opm {
};
template <typename T>
class Euclid : public ::std::binary_function <double, T, double> {
class Euclid {
public:
double
operator()(double x, const T& y) {

View File

@ -155,7 +155,7 @@ namespace Opm {
/// and usually @code T @endcode is an alias for @code
/// double @endcode.
template<typename T>
class axpby : public std::binary_function<T,T,T> {
class axpby {
public:
/// @brief Constructor.
/// @param [in] a