Open billyquith opened 7 years ago
Currently UserObjects have to be manually destructed. Since they have shared_ptrs referencing the holders we should be able to automate this.
UserObject
shared_ptr
This could also be used for placement new, where destruct must be called instead of destroy.
destruct
destroy
Added experimented unique_ptr for UserObjects.
unique_ptr
UserObjects
Lua binder has __gc support now and objects are garbage collected properly.
Currently
UserObject
s have to be manually destructed. Since they haveshared_ptr
s referencing the holders we should be able to automate this.This could also be used for placement new, where
destruct
must be called instead ofdestroy
.Added experimented
unique_ptr
forUserObjects
.