SWIG_SHARED_PTR macro with templated class
问题 I'm using SWIG with boost shared pointers to create python extensions. My current issue is that the SWIG_SHARED_PTR macro seems to work differently with templated classes. I'll give two examples, one without templates (example), and one with templates (example2). First I'll include the code, and at the end show the difference in behavior of the two extensions within python. The basic problem is that without templates the shared pointers appear in python as <example.Derived; proxy of <Swig