diff options
author | bubnikv <bubnikv@gmail.com> | 2017-01-11 16:38:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-01-11 16:38:24 +0300 |
commit | c2ba5901e46ec7c6773c27453965ea6ddb5427ff (patch) | |
tree | 5532528561381b6664cc4e25e798e3dbf07fb8b0 | |
parent | c632d08550601b0f6ba646c08076137b924be8b0 (diff) |
Copy / move assign operators for ExPolygon.version_1.33.0
-rw-r--r-- | xs/src/libslic3r/ExPolygon.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygon.hpp b/xs/src/libslic3r/ExPolygon.hpp index 589649fa0..636b07cc7 100644 --- a/xs/src/libslic3r/ExPolygon.hpp +++ b/xs/src/libslic3r/ExPolygon.hpp @@ -18,6 +18,9 @@ public: ExPolygon(const ExPolygon &other) : contour(other.contour), holes(other.holes) {} ExPolygon(ExPolygon &&other) : contour(std::move(other.contour)), holes(std::move(other.holes)) {} + ExPolygon& operator=(const ExPolygon &other) { contour = other.contour; holes = other.holes; return *this; } + ExPolygon& operator=(ExPolygon &&other) { contour = std::move(other.contour); holes = std::move(other.holes); return *this; } + Polygon contour; Polygons holes; |