From d07dc0daad741e2c39e8f090e6b13c21ea51aaef Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 16 May 2025 16:33:03 +0200 Subject: [PATCH] remove the lambda expression maybe solve that issue: ``` 21>C:\CGAL_ROOT\CGAL-6.1-Ic-155\include\CGAL/Conforming_constrained_Delaunay_triangulation_vertex_data_3.h(82,1): error C2888: '==::': symbol cannot be defined within namespace 'CGAL' [C:\CGAL_ROOT\CGAL-6.1-Ic-155\cmake\platforms\MSVC-2019-Community-Release\test\Constrained_triangulation_3_Examples\ccdt_3_preprocessing.vcxproj] ``` https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-6.1-Ic-155/Constrained_triangulation_3_Examples/TestReport_Christo_MSVC-2019-Community-Release.gz --- ...ned_Delaunay_triangulation_vertex_data_3.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_vertex_data_3.h b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_vertex_data_3.h index 8ab3cf88d33..bf4a493f778 100644 --- a/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_vertex_data_3.h +++ b/Constrained_triangulation_3/include/CGAL/Conforming_constrained_Delaunay_triangulation_vertex_data_3.h @@ -71,15 +71,16 @@ protected: public: friend bool operator==(const Conforming_constrained_Delaunay_triangulation_vertex_data_3& lhs, const Conforming_constrained_Delaunay_triangulation_vertex_data_3& rhs) { - return lhs.m_vertex_type == rhs.m_vertex_type && lhs.mark == rhs.mark && std::invoke([&]() { - if(lhs.m_vertex_type == CDT_3_vertex_type::STEINER_ON_EDGE) { - return lhs.u.on_edge.nb_of_incident_constraints == rhs.u.on_edge.nb_of_incident_constraints && - lhs.u.on_edge.c_id == rhs.u.on_edge.c_id; - } else if(lhs.m_vertex_type == CDT_3_vertex_type::STEINER_IN_FACE) { - return lhs.u.on_face.face_index == rhs.u.on_face.face_index; - } - return true; - }); + if(lhs.m_vertex_type != rhs.m_vertex_type || lhs.mark != rhs.mark) return false; + switch(lhs.m_vertex_type) { + case CDT_3_vertex_type::STEINER_ON_EDGE: + return lhs.u.on_edge.nb_of_incident_constraints == rhs.u.on_edge.nb_of_incident_constraints && + lhs.u.on_edge.c_id == rhs.u.on_edge.c_id; + case CDT_3_vertex_type::STEINER_IN_FACE: + return lhs.u.on_face.face_index == rhs.u.on_face.face_index; + default: + return true; + } } template