From: rnv Date: Mon, 25 Feb 2019 16:35:16 +0000 (+0300) Subject: Fix compilation on Windows X-Git-Tag: V9_3_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=bf6639b9f65478980ea7792c0cb8a6bf30393880 Fix compilation on Windows --- 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