From a35555b58f1b16911f237265b8767a7cd73aa4e8 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 22 Feb 2022 15:19:17 +0000 Subject: [PATCH] Surface_mesh_shortest_path: Make data member a copy as otherwise potentially dangling reference --- .../Surface_mesh_shortest_path/Surface_mesh_shortest_path.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path.h b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path.h index ef841dd6bb3..270f003af03 100644 --- a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path.h +++ b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path.h @@ -331,7 +331,7 @@ private: }; private: - const Traits& m_traits; + const Traits m_traits; const Triangle_mesh& m_graph; Vertex_index_map m_vertexIndexMap;