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

src/SMDS/SMDS_MeshGroup.cxx

index d00abe01361c6b157bcf924815b7cf6eff1950e7..77a8a45b2654f76c82a43f514dfdf8b1cd0ae7c8 100644 (file)
@@ -139,7 +139,8 @@ void SMDS_MeshGroup::Add(const SMDS_MeshElement * theElem)
 
 bool SMDS_MeshGroup::Remove(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;
   if ( found != myElements.end() ) {
     myElements.erase(found);
     if (myElements.empty()) myType = SMDSAbs_All;