Re: enable_shared_from_this problem in javascript

2016-10-07 Thread Jordan Bouchoucha
Hi and really thanks to you. I will try your solution soon and keep yourself informed ! Thanks again ! -- 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 em

Re: enable_shared_from_this problem in javascript

2016-10-07 Thread Joe Lee
I think your problem is that the constructor that is bound for the History_Tree class is one that returns raw pointers instead of smart pointers. What you have right now is roughly equivalent to the following C++: int main() { auto t = new History_Tree(); t->append_next_move(15); r

Re: enable_shared_from_this problem in javascript

2016-08-03 Thread Jordan Bouchoucha
Hi, I edit the embind code. Now I got a new error with this : EMSCRIPTEN_BINDINGS(History_Tree) { emscripten::class_>>("History_Tree") .smart_ptr>("History_TreePtr") .constructor<>() .function("append_next_move", &History_Tree::append_next_move) ; emscripten::class_>( "st

enable_shared_from_this problem in javascript

2016-08-01 Thread Jordan Bouchoucha
Hi, Firstly, sorry for my bad English, I hope you will understand me clearly. I search solution for my issues this week without success... It's why i post here now. I'm working in a C++ Tree module (very basic) and i need to use it in Javascript. I show you the code resume : Tree.h #