mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
delegate to operator equals in operator not equals
This commit is contained in:
parent
ea08388e7a
commit
71594d402e
@ -210,7 +210,7 @@ constexpr bool operator==(Vector2<T> left, Vector2<T> right)
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr bool operator!=(Vector2<T> left, Vector2<T> right)
|
constexpr bool operator!=(Vector2<T> left, Vector2<T> right)
|
||||||
{
|
{
|
||||||
return (left.x != right.x) || (left.y != right.y);
|
return !(left == right);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ constexpr bool operator==(const Vector3<T>& left, const Vector3<T>& right)
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr bool operator!=(const Vector3<T>& left, const Vector3<T>& right)
|
constexpr bool operator!=(const Vector3<T>& left, const Vector3<T>& right)
|
||||||
{
|
{
|
||||||
return (left.x != right.x) || (left.y != right.y) || (left.z != right.z);
|
return !(left == right);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace sf
|
} // namespace sf
|
||||||
|
Loading…
Reference in New Issue
Block a user