开发者

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

开发者 https://www.devze.com 2023-01-21 09:45 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号