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