From 9810cfa1e83f173ccbdc1c3335183f93529838b5 Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Sat, 22 Aug 2020 07:30:13 -0400 Subject: Addressed comments of reviewers on D8623. Almost all changes asked for by Campbell and Jacques have been addressed. The clang-tidy fixes will happen in the next commit. --- source/blender/blenlib/BLI_mpq2.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/blenlib/BLI_mpq2.hh') diff --git a/source/blender/blenlib/BLI_mpq2.hh b/source/blender/blenlib/BLI_mpq2.hh index a37140da5ec..86a7b0ac3a8 100644 --- a/source/blender/blenlib/BLI_mpq2.hh +++ b/source/blender/blenlib/BLI_mpq2.hh @@ -116,6 +116,11 @@ struct mpq2 { return a.x == b.x && a.y == b.y; } + friend bool operator!=(const mpq2 &a, const mpq2 &b) + { + return a.x != b.x || a.y != b.y; + } + friend std::ostream &operator<<(std::ostream &stream, const mpq2 &v) { stream << "(" << v.x << ", " << v.y << ")"; -- cgit v1.2.3