From 684f48e14c8c7d01c89e81282eb903a63f43f579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 5 Aug 2022 13:41:39 +0200 Subject: [PATCH] const_cast is useless --- Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index ecd062b55ed..4567818aa8a 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -591,7 +591,7 @@ private: //------------------------------------------------------ iterator types return this->hnd_ == other.hnd_; } - Index_ dereference() const { return const_cast(hnd_); } + Index_ dereference() const { return hnd_; } Index_ hnd_; const Surface_mesh* mesh_;