Problem with TopTools_SequenceOfShape

I'm trying to use TopTools_SequenceOfShape class like:

void foo( TopTools_SequenceOfShape param = TopTools_SequenceOfShape() )
{
}

But, I don't know why when I'm call function without parameters, like foo() I've get segmentation fault. What I did wrong? How can I solve this problem.

Forum supervisor's picture

Hi Edward,
Use, please
TopTools_SequenceOfShape& param = TopTools_SequenceOfShape() ;

Regards