Salome HOME
Fix of compilation problems on some platforms
[modules/smesh.git] / src / SMDS / SMDS_MeshGroup.cxx
index 25ae25b73b774c32c378805fe36a143c6b015c26..0cb481c501c0c38f13c2bd9d966c274625c271fd 100644 (file)
 //  Author : Jean-Michel BOULCOURT
 //  Module : SMESH
 
-using namespace std;
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
+
 #include "SMDS_MeshGroup.hxx"
 #include "utilities.h"
+
+using namespace std;
+
 //=======================================================================
 //function : SMDS_MeshGroup
 //purpose  : 
@@ -119,7 +125,7 @@ void SMDS_MeshGroup::Add(const SMDS_MeshElement * theElem)
        // the type of the group is determined by the first element added
        if (myElements.empty()) myType = theElem->GetType();
        else if (theElem->GetType() != myType)
-               MESSAGE("SMDS_MeshGroup::Add : Type Mismatch");
+         MESSAGE("SMDS_MeshGroup::Add : Type Mismatch "<<theElem->GetType()<<"!="<<myType);
        
        myElements.insert(theElem);
 }