Salome HOME
Build documentation under Windows.
[modules/smesh.git] / src / SMESHUtils / SMESH_Triangulate.cxx
index 873eb37d7ab9d631c93d0c934fc5697e26455151..6a60211c66a7edf6b812334a7e6455d9721c25c0 100644 (file)
@@ -80,15 +80,13 @@ struct Triangulate::PolyVertex
   bool   IsInsideTria( const PolyVertex* v );
   PolyVertex* Delete();
 
-  struct Compare // compare PolyVertex'es by node
+  // compare PolyVertex'es by node
+  bool operator()(const PolyVertex* a, const PolyVertex* b) const
   {
-    bool operator()(const PolyVertex* a, const PolyVertex* b) const
-    {
-      return ( a->_nxyz.Node() <  b->_nxyz.Node() );
-    }
-  };
+    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