Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-01-11 16:38:24 +0300
committerbubnikv <bubnikv@gmail.com>2017-01-11 16:38:24 +0300
commitc2ba5901e46ec7c6773c27453965ea6ddb5427ff (patch)
tree5532528561381b6664cc4e25e798e3dbf07fb8b0
parentc632d08550601b0f6ba646c08076137b924be8b0 (diff)
Copy / move assign operators for ExPolygon.version_1.33.0
-rw-r--r--xs/src/libslic3r/ExPolygon.hpp3
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;