How to wrap a <myClass*, myClass*> C++ dictionary using SWIG for Python and .NET
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开发者_Go百科 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*>;
Question:
Is this wrapping type possible?Thanks! Javier
精彩评论