Papierkorb / bindgen

Binding and wrapper generator for C/C++ libraries
GNU General Public License v3.0
179 stars 18 forks source link

Wrap C++ classes so that the destructor is called. #119

Closed f-fr closed 2 years ago

f-fr commented 2 years ago

All C++ class instances are wrapped in a CrystalGCWrapper class that ensures that the garbage collector calls the destructor.

Fixes issue #86.

docelic commented 2 years ago

That looks like an elegant solution, thanks!