Simplification

This commit is contained in:
Alexey Milovidov 2021-05-05 02:09:32 +03:00
parent acd0d9b34c
commit 77ebbdaeda

View File

@ -93,9 +93,8 @@ bool equalsOp(A a, B b)
return a == b; return a == b;
/// anything vs NaN /// anything vs NaN
if constexpr (std::is_floating_point_v<A> || std::is_floating_point_v<B>) if (isNaN(a) || isNaN(b))
if (isNaN(a) || isNaN(b)) return false;
return false;
/// int vs int /// int vs int
if constexpr (is_integer_v<A> && is_integer_v<B>) if constexpr (is_integer_v<A> && is_integer_v<B>)