开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜