maths: exactly_equal should take two typenames
This commit is contained in:
parent
08f8d35799
commit
5c030bf0ea
@ -112,9 +112,9 @@ almost_equal (const Ta &a, const Tb &b)
|
|||||||
// Useful for explictly ignore equality warnings
|
// Useful for explictly ignore equality warnings
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||||
template <typename T>
|
template <typename T, typename U>
|
||||||
bool
|
bool
|
||||||
exactly_equal (const T &a, const T &b)
|
exactly_equal (const T &a, const U &b)
|
||||||
{ return a == b; }
|
{ return a == b; }
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user