Fix generated code when wrapping a class with a private destructor.

Authored by burel on Jul 18 2017, 5:54 PM.

Description

Fix generated code when wrapping a class with a private destructor.

If a class has a private destructor, it cannot be subclassed. The normal
smoke approach when wrapping a class is to subclass it, which doesn't work
when a private destructor is involved. The solution is to make a class
that is just a collection of static methods, that dispatches the function
calls appropriately.

Details

Committed
burelJul 18 2017, 8:38 PM
Parents
R521:6d4ccd2aceb8: Remove hard-coded -std=c++11 flag.
Branches
Unknown
Tags
Unknown