Salome HOME
Fix using of std::set::const_iterator as agrument of set::erase method. V4_1_4 V4_1_4sp1 V4_1_4sp2
authorabd <abd@opencascade.com>
Wed, 3 Dec 2008 09:35:52 +0000 (09:35 +0000)
committerabd <abd@opencascade.com>
Wed, 3 Dec 2008 09:35:52 +0000 (09:35 +0000)
It's incompatible with MS compiler.

src/SMDS/SMDS_MeshGroup.cxx

index 77a5ef285aaa498065a3fdbca91ac1c977c820b8..67c1df42616525e0e5abb2eb4412faf75ecfef33 100644 (file)
@@ -139,7 +139,8 @@ void SMDS_MeshGroup::Add(const SMDS_MeshElement * theElem)
 
 bool SMDS_MeshGroup::Remove(const SMDS_MeshElement * theElem)
 {
-  TIterator found = myElements.find(theElem);
+  std::set<const SMDS_MeshElement *>::iterator found
+    = myElements.find(theElem);
   if ( found != myElements.end() ) {
     myElements.erase(found);
     if (myElements.empty()) myType = SMDSAbs_All;