maths: don't accidentally overload almost_equal
This commit is contained in:
parent
7706caed32
commit
5bb55f5437
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user