Warning 312 : Nested union not currently support (ignored)
使用swig 工具将C++ 转Python遇到的问题,忽略了嵌套的union
如代码:
template<class T> classA
{
public:
classA();
~classA();
union
{
struct
{
T x,y,z;
};
T xyz[3];
};
}
会忽略掉union格式,会影响继承或者其他方式的调用,我想
原创
2020-07-28 15:33:25 ·
383 阅读 ·
0 评论