diff --git a/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_global.h b/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_global.h index 5bc8054c525..1436405e4d8 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_global.h +++ b/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_global.h @@ -1568,7 +1568,7 @@ template bool do_intersect(Arrangement_on_surface_2& arr, - const typename GeometryTraits_2::X_monotone_curve_2& c, + const typename GeometryTraits_2::Curve_2& c, const PointLocation& pl, std::is_same::type) { typedef GeometryTraits_2 Gt2; @@ -1607,7 +1607,7 @@ do_intersect(Arrangement_on_surface_2& arr, // Check whether the isolated point lies inside a face (otherwise, // it coincides with a vertex or an edge). auto obj = pl.locate(*iso_p); - if (std::get_if(&x_obj) != nullptr) return true; + if (std::get_if(&obj) != nullptr) return true; } // If we reached here, the curve does not intersect the arrangement.