billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
640 stars 93 forks source link

Add destructor function to user object holders #50

Open billyquith opened 7 years ago

billyquith commented 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.

This could also be used for placement new, where destruct must be called instead of destroy.

Added experimented unique_ptr for UserObjects.

billyquith commented 3 years ago

Lua binder has __gc support now and objects are garbage collected properly.