DiscussionsIssue archiveOther usage issues

Archived discussion

Handle Type Conversion

Other usage issuesThu, 08/27/2020 - 13:211 reply

Browse this forum
QuestionAuthor

Hi guys,

I have an issue. The codes are:

Handle(IGESData_IGESEntity) igesEntity = Handle(IGESData_IGESEntity)::DownCast(aList->Value(j));

if (aReader.TransferEntity(igesEntity))

TransferEntity take "const Handle(Standard_Transient)" as input argument. But the compiler complains:

no suitable user-defined conversion from "opencascade::handle<IGESData_IGESEntity> to "const opencascade::handle<Standard_Transient>" exists.

Based on C++ definition, it should work.

Could anyone please tell me how to resolve this issue?

Thank you.

Eric.

 

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

solved. I should add the include file.

#include <IGESData_IGESEntity.hxx>