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: '==::<lambda_f8bc645280bb56be32d0268df7c48762>': 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
This commit is contained in:
Laurent Rineau 2025-05-16 16:33:03 +02:00
parent c9748b5230
commit d07dc0daad
1 changed files with 10 additions and 9 deletions

View File

@ -71,15 +71,16 @@ protected:
public: public:
friend bool operator==(const Conforming_constrained_Delaunay_triangulation_vertex_data_3& lhs, friend bool operator==(const Conforming_constrained_Delaunay_triangulation_vertex_data_3& lhs,
const Conforming_constrained_Delaunay_triangulation_vertex_data_3& rhs) { 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 != rhs.m_vertex_type || lhs.mark != rhs.mark) return false;
if(lhs.m_vertex_type == CDT_3_vertex_type::STEINER_ON_EDGE) { 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 && 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; 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) { case CDT_3_vertex_type::STEINER_IN_FACE:
return lhs.u.on_face.face_index == rhs.u.on_face.face_index; return lhs.u.on_face.face_index == rhs.u.on_face.face_index;
} default:
return true; return true;
}); }
} }
template <typename T> template <typename T>