[Ns-bugs] [Bug 877] python bindings broken with multiple inheritance ?

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Thu Apr 15 05:49:14 PDT 2010


http://www.nsnam.org/bugzilla/show_bug.cgi?id=877





--- Comment #3 from Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com>  2010-04-15 08:49:14 EDT ---
(gdb) p py_YansWifiPhyHelper->obj
$1 = (class ns3::YansWifiPhyHelper *) 0xa13f50
(gdb) p static_cast<ns3::PcapHelperForDevice*> ($1)
$2 = (ns3::PcapHelperForDevice *) 0xa13f58

OK, so this is what I missed.  Typecasting changes the 'this' pointer address
when we have MI :-/

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list