|
From: codeoedoc <cod...@gm...> - 2013-03-02 18:49:51
|
bump... anyone has any idea? Thanks, Xin On Sun, Feb 24, 2013 at 11:41 AM, codeoedoc <cod...@gm...> wrote: > Hi there, > > I have the following typedef in c++: > > *typedef std::tuple<enum_ret, std::string> my_ret;* > > where enum_ret is a c++ enum. I didn't include anything in the interface > file for the above typedef, however when I run the python program, it > complains: > > *swig/python detected a memory leak of type 'my_ret *', no destructor > found.* > * > * > It seems swig is not correctly recognizing the my defined type: my_ret, so > it is not able to correctly generate a wrapper. Can anyone tell me what > should I include in the interface file for swig to generate correct wrapper? > > I've tried to include the above typedef directly in the interface file, > but at no avail. > > Thanks! > Xin > |