From c2ba5901e46ec7c6773c27453965ea6ddb5427ff Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 11 Jan 2017 14:38:24 +0100 Subject: Copy / move assign operators for ExPolygon. --- xs/src/libslic3r/ExPolygon.hpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3