Copy / move assign operators for ExPolygon.

This commit is contained in:
bubnikv 2017-01-11 14:38:24 +01:00
parent c632d08550
commit c2ba5901e4

View File

@ -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;