Copy / move assign operators for ExPolygon.
This commit is contained in:
parent
c632d08550
commit
c2ba5901e4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user