diff --git a/test/TestUtilities/SystemUtil.cpp b/test/TestUtilities/SystemUtil.cpp index de2b25c3f..3750fb429 100644 --- a/test/TestUtilities/SystemUtil.cpp +++ b/test/TestUtilities/SystemUtil.cpp @@ -38,7 +38,7 @@ std::ostream& operator<<(std::ostream& os, Time time) } template -std::ostream& operator<<(std::ostream& os, const Vector2& vector) +std::ostream& operator<<(std::ostream& os, Vector2 vector) { setStreamPrecision(os, std::numeric_limits::max_digits10); return os << "(" << vector.x << ", " << vector.y << ")"; @@ -51,9 +51,9 @@ std::ostream& operator<<(std::ostream& os, const Vector3& vector) return os << "(" << vector.x << ", " << vector.y << ", " << vector.z << ")"; } -template std::ostream& operator<<(std::ostream&, const Vector2&); -template std::ostream& operator<<(std::ostream&, const Vector2&); -template std::ostream& operator<<(std::ostream&, const Vector2&); +template std::ostream& operator<<(std::ostream&, Vector2); +template std::ostream& operator<<(std::ostream&, Vector2); +template std::ostream& operator<<(std::ostream&, Vector2); template std::ostream& operator<<(std::ostream&, const Vector3&); template std::ostream& operator<<(std::ostream&, const Vector3&); @@ -65,7 +65,7 @@ bool operator==(const float& lhs, const Approx& rhs) return lhs == Catch::Approx(rhs.value).margin(1e-5); } -bool operator==(const sf::Vector2f& lhs, const Approx& rhs) +bool operator==(sf::Vector2f lhs, const Approx& rhs) { return (lhs - rhs.value).length() == Approx(0.f); } diff --git a/test/TestUtilities/SystemUtil.hpp b/test/TestUtilities/SystemUtil.hpp index de00cc7a9..c76d2779f 100644 --- a/test/TestUtilities/SystemUtil.hpp +++ b/test/TestUtilities/SystemUtil.hpp @@ -31,7 +31,7 @@ std::ostream& operator<<(std::ostream& os, const String& string); std::ostream& operator<<(std::ostream& os, Time time); template -std::ostream& operator<<(std::ostream& os, const Vector2& vector); +std::ostream& operator<<(std::ostream& os, Vector2 vector); template std::ostream& operator<<(std::ostream& os, const Vector3& vector); @@ -53,7 +53,7 @@ struct Approx }; bool operator==(const float& lhs, const Approx& rhs); -bool operator==(const sf::Vector2& lhs, const Approx>& rhs); +bool operator==(sf::Vector2 lhs, const Approx>& rhs); bool operator==(const sf::Vector3& lhs, const Approx>& rhs); bool operator==(const sf::Angle& lhs, const Approx& rhs);