From 4d85eb07de8150ddb1c7f858ee3ad9a5c5ddbc6f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 4 Apr 2024 12:58:32 +0200 Subject: [PATCH] attempt to fix "possibly dangling reference" warning --- SMDS_3/include/CGAL/facets_in_complex_3_to_triangle_mesh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMDS_3/include/CGAL/facets_in_complex_3_to_triangle_mesh.h b/SMDS_3/include/CGAL/facets_in_complex_3_to_triangle_mesh.h index 6110ffc9150..a6739367e5e 100644 --- a/SMDS_3/include/CGAL/facets_in_complex_3_to_triangle_mesh.h +++ b/SMDS_3/include/CGAL/facets_in_complex_3_to_triangle_mesh.h @@ -111,8 +111,8 @@ void facets_in_complex_3_to_triangle_soup(const C3T3& c3t3, CGAL_assertion(v != typename Tr::Vertex_handle()); CGAL_assertion(!c3t3.triangulation().is_infinite(v)); - const typename Tr::Point& tr_wp = c3t3.triangulation().point(v); - const typename Tr_kernel::Point_3& + const typename Tr::Point tr_wp = c3t3.triangulation().point(v); + const typename Tr_kernel::Point_3 tr_bp = c3t3.triangulation().geom_traits().construct_point_3_object()(tr_wp); const Range_point bp = tr_to_range(tr_bp);