Bugzilla – Bug 1960
Wrong information on index range, about Node::GetDevice
Last modified: 2014-08-04 02:48:49 UTC
Doxygen says: "The indexes used by the GetDevice method start at one and end at GetNDevices ()" => http://www.nsnam.org/docs/release/3.19/doxygen/classns3_1_1_node.html#a5918dfd24ef632efc9a83a5f6561c76e But with: nodes.Get(0)->GetDevice(nodes.Get(0)->GetNDevices()) I obtain: assert failed. cond="index < m_devices.size ()", msg="Device index 2 is out of range e.cc, line=136 Therefore the indexes don't end at GetNDevices(), or the documentation is not enough clear. Cheers, ju.
Created attachment 1861 [details] propose patch Deleted the [wrong] statement and clarified some other functions
(In reply to Tommaso Pecorella from comment #1) > Created attachment 1861 [details] > propose patch > > Deleted the [wrong] statement and clarified some other functions Looks good to me.
changeset: 10853:43b9107a69a3