|
From: Matthieu B. <mat...@gm...> - 2014-01-02 09:28:29
|
Hi, You may be using the reference to your original pair, which will not work. I can't debug your code now, but try debugging the constructors and destructors to see whatis happenning. Matthieu Le 2 janv. 2014 08:29, "Sebastien Loriot" <slo...@gm...> a écrit : > Does anybody got an idea? > > Thanks, > > Sebastien. > > On 12/13/2013 10:23 AM, Sebastien Loriot wrote: > > Hi, > > > > In the example attached, I have a simple class A and a function append > > that appends to a python list a pair<A,A>. > > > > After adding an element in the list, I take a reference to each element > > A in the pair. If I then force the deletion of the pair then the A's > > got deleted too (the print function calls prints incorrect values). > > > > What am I doing wrong here? > > > > Thanks, > > > > Sebastien. > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > |