[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23

Denis Barbier bouzim at gmail.com
Fri Feb 24 18:50:12 UTC 2012


The following commit has been merged in the upstream branch:
commit a6a34eaf718524d7f0bf6d231303422586eadbde
Author: Fotios Sioutis <sfotis at gmail.com>
Date:   Fri Dec 16 15:57:14 2011 +0200

    Bcc needs HashCode & IsEqual declared as global
    
    As per #188

diff --git a/inc/BRepMesh_CellFilter.hxx b/inc/BRepMesh_CellFilter.hxx
index ab0193d..5369065 100644
--- a/inc/BRepMesh_CellFilter.hxx
+++ b/inc/BRepMesh_CellFilter.hxx
@@ -10,3 +10,11 @@
 #include <BRepMesh_CircleInspector.hxx>
 
 typedef NCollection_CellFilter<BRepMesh_CircleInspector> BRepMesh_CellFilter;
+
+#ifdef __BORLANDC__
+  // definition of global functions is needed for map
+  Standard_Integer HashCode (const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell, const Standard_Integer theUpper)
+  { return aCell.HashCode(theUpper); }
+  Standard_Boolean IsEqual (const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell1, const NCollection_CellFilter<BRepMesh_CircleInspector>::Cell &aCell2)
+  { return aCell1.IsEqual(aCell2); }
+#endif
\ No newline at end of file
diff --git a/inc/BRepMesh_VertexCellFilter.hxx b/inc/BRepMesh_VertexCellFilter.hxx
index 1df57bc..e8d0680 100644
--- a/inc/BRepMesh_VertexCellFilter.hxx
+++ b/inc/BRepMesh_VertexCellFilter.hxx
@@ -21,4 +21,12 @@
 
 typedef NCollection_CellFilter<BRepMesh_VertexInspector> BRepMesh_VertexCellFilter;
 
+#ifdef __BORLANDC__
+  // definition of global functions is needed for map
+  Standard_Integer HashCode (const NCollection_CellFilter<BRepMesh_VertexInspector>::Cell &aCell, const Standard_Integer theUpper)
+  { return aCell.HashCode(theUpper); }
+  Standard_Boolean IsEqual (const NCollection_CellFilter<BRepMesh_VertexInspector>::Cell &aCell1, const NCollection_CellFilter<BRepMesh_VertexInspector>::Cell &aCell2)
+  { return aCell1.IsEqual(aCell2); }
+#endif
+
 #endif

-- 
OCE packaging



More information about the debian-science-commits mailing list