Add missing functions to complete Rule of 3 for ToS2's triangulations

This commit is contained in:
Mael Rouxel-Labbé 2021-07-23 13:09:37 +02:00
parent 4d2bf2f15e
commit d8717289fd
2 changed files with 13 additions and 0 deletions

View File

@ -147,6 +147,16 @@ public:
{
}
// Assignement
Delaunay_triangulation_on_sphere_2& operator=(Delaunay_triangulation_on_sphere_2 other) // intentional copy
{
Base::swap(static_cast<Base&>(other));
return *this;
}
// Destructor
~Delaunay_triangulation_on_sphere_2() = default;
// Predicates & Constructions
Oriented_side side_of_oriented_circle(const Point& p, const Point& q, const Point& r, const Point& s, bool perturb = false) const;
Oriented_side side_of_oriented_circle(const Face_handle f, const Point& p, bool perturb = false) const;

View File

@ -127,6 +127,9 @@ public:
void swap(Triangulation_on_sphere_2& tr);
Triangulation_on_sphere_2& operator=(Triangulation_on_sphere_2 tr); // intentional copy
// Destructor
~Triangulation_on_sphere_2() = default;
public:
// Members
const Geom_traits& geom_traits() const { return _gt; }