diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/Bezier_curve_2.h b/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/Bezier_curve_2.h index 0a5560f2a18..b2e937c69dd 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/Bezier_curve_2.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/Bezier_curve_2.h @@ -443,7 +443,13 @@ public: */ bool is_same (const Self& bc) const { - if(this->identical(bc)) + return *this == bc; + // TODO: use identical instead! + } + + bool operator==(const Self& bc) const + { + if (this->identical(bc)) return true; if (this->number_of_control_points() != bc.number_of_control_points()) return false;