From 1de18c20a8b4145bd5cbe1069e8d145424c56ba2 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 26 May 2015 10:10:51 +0200 Subject: [PATCH] avoid returning a ref to temporary object --- .../CGAL/Constrained_Delaunay_triangulation_face_base_2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh_2/include/CGAL/Constrained_Delaunay_triangulation_face_base_2.h b/Mesh_2/include/CGAL/Constrained_Delaunay_triangulation_face_base_2.h index 995a6052704..00554b5a8a5 100644 --- a/Mesh_2/include/CGAL/Constrained_Delaunay_triangulation_face_base_2.h +++ b/Mesh_2/include/CGAL/Constrained_Delaunay_triangulation_face_base_2.h @@ -101,7 +101,7 @@ public: // if blind, the constrained edge that prevents the face // to see its circumcenter - const Edge_cdt& blinding_constraint() const + Edge_cdt blinding_constraint() const { CGAL_precondition(this->is_blind()); return std::make_pair(m_blinding_constraint.face,