Salome HOME
Fix compilation on Windows
[modules/smesh.git] / src / SMESHUtils / SMESH_Triangulate.cxx
index 873eb37d7ab9d631c93d0c934fc5697e26455151..0d0aaca1f457c310338f0ce89d74155f05d832fc 100644 (file)
@@ -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