Build error when using the triangulation function

I'm applying mesh right now.
Handle(Poly_Triangle) tri;
tri = BRep_Tool::Triangulation(TopoDS::Face(ef.Current()), l);
When i use the Triangulation function,
C2039 'type' : 'std:enable_if<_Test_Ty>' is not a member.
Error. The message is coming up.
Thank you if you can tell me which part to check.

Mikhail Sazonov's picture

You should check carefully the type of object returned by the method BRep_Tool::Triangulation. And the type of object you assign the returned value to.