Hi,
I edit the embind code. Now I got a new error with this :
EMSCRIPTEN_BINDINGS(History_Tree) {
emscripten::class_<History_Tree, emscripten::base<std::
enable_shared_from_this<History_Tree>>>("History_Tree")
.smart_ptr<std::shared_ptr<History_Tree>>("History_TreePtr")
.constructor<>()
.function("append_next_move", &History_Tree::append_next_move)
;
emscripten::class_<std::enable_shared_from_this<History_Tree>>(
"std::enable_shared_from_this<History_Tree>")
;
}
I register the std::enable_shared_from_this<History_Tree> here. (I didn't
do it before... Obviously, was not working)
But I now have this error when I try "em++ --bind -o Tree.js Tree.cpp"
"calling a protected destructor of class
'std::__1::enable_shared_from_this<History_Tree>'
delete ptr;
"
Any ideas how to solve this ? :/
Thanks
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.