Additional Inherited Members | |
Public Member Functions inherited from MyVirtualData | |
MyVirtualData (MyVirtualClass const &) | |
virtual | ~MyVirtualData () |
This "trampoline class" does nothing but is ABSOLUTELY required to ensure downcasting works properly with non-smart ptr signatures. Otherwise, there is no handle to the original Python object ( PyObject
*). Every single polymorphic type exposed to Python should be exposed through such a trampoline. Users can also create their own wrapper classes by taking inspiration from boost::python::wrapper<T>.
Definition at line 90 of file bind_virtual_factory.cpp.