diff --git a/Frechet_distance/include/CGAL/Frechet_distance/internal/geometry_basics.h b/Frechet_distance/include/CGAL/Frechet_distance/internal/geometry_basics.h index a8b17cb0851..8dec6273f8a 100644 --- a/Frechet_distance/include/CGAL/Frechet_distance/internal/geometry_basics.h +++ b/Frechet_distance/include/CGAL/Frechet_distance/internal/geometry_basics.h @@ -114,7 +114,7 @@ struct Lambda> bool update_exact() const { if (is_exact){ - if (! exact){ + if (!exact.has_value()){ exact = (is_one) ? std::make_optional(Exact(1)) : std::make_optional(Exact(0)); } return true; @@ -211,7 +211,7 @@ struct Lambda> } update_exact(); other.update_exact(); - bool eres = *exact < *other.exact; + bool eres = exact.value() < other.exact.value(); return eres; } };