From 47543cf82a02e625ad1ceffb75d6e27cc5a11b1f Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 5 Apr 2017 08:57:59 +0200 Subject: [PATCH] Operator< for Point --- xs/src/libslic3r/Point.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xs/src/libslic3r/Point.hpp b/xs/src/libslic3r/Point.hpp index 88b585307..b59100bfb 100644 --- a/xs/src/libslic3r/Point.hpp +++ b/xs/src/libslic3r/Point.hpp @@ -39,6 +39,7 @@ class Point }; bool operator==(const Point& rhs) const { return this->x == rhs.x && this->y == rhs.y; } bool operator!=(const Point& rhs) const { return ! (*this == rhs); } + bool operator<(const Point& rhs) const { return this->x < rhs.x || (this->x == rhs.x && this->y < rhs.y); } std::string wkt() const; std::string dump_perl() const; void scale(double factor);