Skip to content

Allow to store wrapped C++ objects in `std::shared_ptr`

Compare
Choose a tag to compare
@pmed pmed released this 29 Oct 15:54
· 342 commits to master since this release
  • Wrapped C++ class now can be bound to store objects in std::shared_ptr:
class MyClass {};
v8pp::class_<MyClass, true> MyClass_binding(isolate);

v8::Handle<v8::Object> v8_obj = v8pp::class_<MyClass, true>::create_object(isolate);
std::shared_ptr<MyClass> obj = v8pp::class_<MyClass, true>::unwrap_object(isolate, v8_obj);
  • Added compile-time type_id() function instead of RTTI usage.
  • Fixed an issue #62