polygon - add move ctor
This commit is contained in:
parent
d810ce46f2
commit
f0a37c761b
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ struct polygon : mapbox::geometry::polygon<T>
|
|||
//this->resize(1); // explicit exterior ring ?
|
||||
}
|
||||
|
||||
polygon(polygon && other)
|
||||
: base_type(std::move(other)),
|
||||
interior_(*this) {}
|
||||
|
||||
polygon(polygon const& other)
|
||||
: base_type(other),
|
||||
interior_(*this) {}
|
||||
|
|
Loading…
Reference in a new issue