maths: don't accidentally overload almost_equal

This commit is contained in:
Danny Robson 2017-01-23 21:47:30 +11:00
parent 7706caed32
commit 5bb55f5437

View File

@ -64,7 +64,8 @@ namespace util {
inline inline
typename std::enable_if_t< typename std::enable_if_t<
std::is_floating_point<A>::value && std::is_floating_point<A>::value &&
std::is_floating_point<B>::value, std::is_floating_point<B>::value &&
!std::is_same<A,B>::value ,
bool bool
> >
almost_equal (const A &a, const B &b) almost_equal (const A &a, const B &b)