From bf6639b9f65478980ea7792c0cb8a6bf30393880 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 25 Feb 2019 19:35:16 +0300 Subject: [PATCH] Fix compilation on Windows --- src/SMESHUtils/SMESH_Triangulate.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/SMESHUtils/SMESH_Triangulate.cxx b/src/SMESHUtils/SMESH_Triangulate.cxx index 873eb37d7..0d0aaca1f 100644 --- a/src/SMESHUtils/SMESH_Triangulate.cxx +++ b/src/SMESHUtils/SMESH_Triangulate.cxx @@ -80,15 +80,13 @@ struct Triangulate::PolyVertex bool IsInsideTria( const PolyVertex* v ); PolyVertex* Delete(); - struct Compare // compare PolyVertex'es by node - { - bool operator()(const PolyVertex* a, const PolyVertex* b) const - { + // compare PolyVertex'es by node + bool operator()(const PolyVertex* a, const PolyVertex* b) const + { return ( a->_nxyz.Node() < b->_nxyz.Node() ); } - }; // set of PolyVertex sorted by mesh node - typedef boost::container::flat_set< PolyVertex*, Compare > PVSet; + typedef boost::container::flat_set< PolyVertex*, PolyVertex > PVSet; }; struct Triangulate::Data -- 2.39.2