Open janvorisek opened 9 months ago
Hey, thanks for the issue! If I remember correctly this should already be possible (see here for an example), however the library uses std::shared_ptr
instead of std::unique_ptr
, as multiple references to the same object may be kept in different places.
It should be easily possible to construct a shared pointer from a unique one to bind your library to TypeScript.
Thanks for a really useful library!
Is it possible to make addConstructor use smart pointers?
I.e., in emscripten I can do
My cpp library works with smart pointers all the time. Now I want to utilize it in Typescript via emglue.
Is that possible?