mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
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:
parent
0c78a3e1b9
commit
67f5970ff8
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user