[Smtk-developers] Pybind and attribute::ItemDefinition subclasses

David Thompson david.thompson at kitware.com
Wed Apr 4 22:36:12 EDT 2018


Hi TJ,

> All classes that require the use of shared pointers must also do so in pybind11 (as you discovered). The auto gen script should have done that for you (and It may be documented there). Did you use the script or wrap the class by hand?

I used the script.

> If the former, then that is indeed a problem with the script (it looks to see if a class inherits from shared_from_this, if memory serves). ...

The class inherits from a class that inherits shared_from_this. Perhaps that is causing the problem?

   David


More information about the Smtk-developers mailing list