modernize NonlinearEquality.h
parent
4ea2b2ee9a
commit
0e231be536
|
@ -66,12 +66,9 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/// Function that compares two values.
|
||||||
* Function that compares two values
|
using CompareFunction = std::function<bool(const T&, const T&)>;
|
||||||
*/
|
|
||||||
typedef std::function<bool(const T&, const T&)> CompareFunction;
|
|
||||||
CompareFunction compare_;
|
CompareFunction compare_;
|
||||||
// bool (*compare_)(const T& a, const T& b);
|
|
||||||
|
|
||||||
/// Default constructor - only for serialization
|
/// Default constructor - only for serialization
|
||||||
NonlinearEquality() {
|
NonlinearEquality() {
|
||||||
|
@ -198,9 +195,8 @@ private:
|
||||||
};
|
};
|
||||||
// \class NonlinearEquality
|
// \class NonlinearEquality
|
||||||
|
|
||||||
template<typename VALUE>
|
template <typename VALUE>
|
||||||
struct traits<NonlinearEquality<VALUE> > : Testable<NonlinearEquality<VALUE> > {
|
struct traits<NonlinearEquality<VALUE>> : Testable<NonlinearEquality<VALUE>> {};
|
||||||
};
|
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
/**
|
/**
|
||||||
|
@ -285,9 +281,9 @@ private:
|
||||||
};
|
};
|
||||||
// \NonlinearEquality1
|
// \NonlinearEquality1
|
||||||
|
|
||||||
template<typename VALUE>
|
template <typename VALUE>
|
||||||
struct traits<NonlinearEquality1<VALUE> > : Testable<NonlinearEquality1<VALUE> > {
|
struct traits<NonlinearEquality1<VALUE> >
|
||||||
};
|
: Testable<NonlinearEquality1<VALUE> > {};
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue