Windows build, fix errors

This commit is contained in:
Viktor Uzlov 2021-02-19 13:02:56 +03:00
parent ac0ffa0a64
commit 79fe25c5be
4 changed files with 12 additions and 2 deletions

View File

@ -1174,7 +1174,7 @@ namespace SMESH{
virtual SMDSAbs_ElementType GetType() const;
virtual void SetMesh( const SMDS_Mesh* theMesh );
virtual bool IsSatisfy( smIdType theElementId );
virtual bool IsSatisfy( long theElementId );
//const std::set<long>& GetDomainIDs() const { return myOkIDs; }

View File

@ -2095,7 +2095,7 @@ void SMESH_Mesh_i::ReplaceShape(GEOM::GEOM_Object_ptr theNewGeom)
TRange & lastRange = ranges.back();
if ( lastRange.shapeID != shapeID ||
lastRange.toID != elemID )
ranges.push_back( TRange{ shapeID, elemID, elemID + 1 });
ranges.push_back( TRange{ shapeID, FromIdType<int>(elemID), FromIdType<int>(elemID + 1) });
else
lastRange.toID = elemID + 1;

View File

@ -139,6 +139,13 @@ namespace SMESH
return *this;
}
TPythonDump&
TPythonDump::
operator<<(SMESH::smIdType theArg){
myStream<<theArg;
return *this;
}
TPythonDump&
TPythonDump::
operator<<(double theArg){

View File

@ -134,6 +134,9 @@ namespace SMESH
TPythonDump&
operator<<(int theArg);
TPythonDump&
operator<<(SMESH::smIdType theArg);
TPythonDump&
operator<<(double theArg);