From: abd Date: Wed, 3 Dec 2008 09:35:52 +0000 (+0000) Subject: Fix using of std::set::const_iterator as agrument of set::erase method. X-Git-Tag: V4_1_4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=179aef89ac3a99a5254a7f99a2042f31f680e95e;p=modules%2Fsmesh.git Fix using of std::set::const_iterator as agrument of set::erase method. It's incompatible with MS compiler. --- diff --git a/src/SMDS/SMDS_MeshGroup.cxx b/src/SMDS/SMDS_MeshGroup.cxx index 77a5ef285..67c1df426 100644 --- a/src/SMDS/SMDS_MeshGroup.cxx +++ b/src/SMDS/SMDS_MeshGroup.cxx @@ -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::iterator found + = myElements.find(theElem); if ( found != myElements.end() ) { myElements.erase(found); if (myElements.empty()) myType = SMDSAbs_All;