From d8717289fdccb1a5da8ca7bca606820855e53ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 23 Jul 2021 13:09:37 +0200 Subject: [PATCH] Add missing functions to complete Rule of 3 for ToS2's triangulations --- .../include/CGAL/Delaunay_triangulation_on_sphere_2.h | 10 ++++++++++ .../include/CGAL/Triangulation_on_sphere_2.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h index 33a14b828e7..35600bdd788 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Delaunay_triangulation_on_sphere_2.h @@ -147,6 +147,16 @@ public: { } + // Assignement + Delaunay_triangulation_on_sphere_2& operator=(Delaunay_triangulation_on_sphere_2 other) // intentional copy + { + Base::swap(static_cast(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; diff --git a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h index 9d8aac545a7..0de37519ad3 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_2.h @@ -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; }