How to wrap a <myClass*, myClass*> C++ dictionary using SWIG for Python and .NET – Education Career Blog

I’m wrapping C++ code into Python and .NET code by using SWIG 2.0.0.

I’m able to wrap a (myClass*, std::string) by introducing the following sentence in the “interface.i” file:

%template(Dictionary_myClass_String) std::map<myClass*, std::string>;

But I’m getting several errors if i try this:

%template(Dictionary_myClass_myClass) std::map<myClass*, myClass*>;

Is this wrapping type possible?


Leave a Comment