maths: exactly_equal should take two typenames

This commit is contained in:
Danny Robson 2014-07-07 15:16:21 +10:00
parent 08f8d35799
commit 5c030bf0ea

View File

@ -112,9 +112,9 @@ almost_equal (const Ta &a, const Tb &b)
// Useful for explictly ignore equality warnings
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
template <typename T>
template <typename T, typename U>
bool
exactly_equal (const T &a, const T &b)
exactly_equal (const T &a, const U &b)
{ return a == b; }
#pragma GCC diagnostic pop