You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried to use the method described in your project to convert the cgal library, but some of the header files exist template class writing, the Internet said idl does not support generics, so I encountered difficulties when writing idl, I intercepted part of the code as follows, looking forward to getting a reply
`
template
class I_Polyhedron_vertex : public VertexBase {
public:
typedef VertexBase Base;
typedef typename Base::Point Point;
typedef Point Point_3;
Yes, template classes won't work out of the box. A possible work around is to add typedefs to your native code for each template variant. I do something similar for my PhysX bindings:
// C++ code:typedef physx::PxArray<physx::PxVec3> PxArray_PxVec3;
and then you can use the typedef type in your webidl definition:
Hello, I tried to use the method described in your project to convert the cgal library, but some of the header files exist template class writing, the Internet said idl does not support generics, so I encountered difficulties when writing idl, I intercepted part of the code as follows, looking forward to getting a reply
`
template
class I_Polyhedron_vertex : public VertexBase {
public:
typedef VertexBase Base;
typedef typename Base::Point Point;
typedef Point Point_3;
public:
I_Polyhedron_vertex() {}
I_Polyhedron_vertex( const VertexBase& b) : VertexBase(b) {}
I_Polyhedron_vertex( const Point_3& p) : VertexBase(p) {}
}
`
The text was updated successfully, but these errors were encountered: