From 671bdf94c7f8d4945e3d019d59ca76f4be1df9a6 Mon Sep 17 00:00:00 2001 From: abd Date: Wed, 3 Dec 2008 09:33:04 +0000 Subject: [PATCH] Fix using of std::set::const_iterator as agrument of set::erase method. It's incompatible with MS compiler. --- src/SMDS/SMDS_MeshGroup.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMDS/SMDS_MeshGroup.cxx b/src/SMDS/SMDS_MeshGroup.cxx index d00abe013..77a8a45b2 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; -- 2.39.2