Fix using of std::set::const_iterator as agrument of set::erase method.

It's incompatible with MS compiler.
This commit is contained in:
abd 2008-12-03 09:33:04 +00:00
parent 3a41eb0de6
commit 671bdf94c7

View 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() ) { if ( found != myElements.end() ) {
myElements.erase(found); myElements.erase(found);
if (myElements.empty()) myType = SMDSAbs_All; if (myElements.empty()) myType = SMDSAbs_All;