From adfcc7d10283cb762eba3f7c34fb62717f9fa08d Mon Sep 17 00:00:00 2001 From: Sebastien Loriot Date: Tue, 21 Oct 2025 18:08:22 +0200 Subject: [PATCH] more verbose --- .../include/CGAL/Frechet_distance/internal/geometry_basics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } };