[Ns-bugs] [Bug 86] add missing functions to Mac48Address code

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Tue Oct 9 06:27:39 PDT 2007


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





------- Comment #1 from gjcarneiro at gmail.com  2007-10-09 09:27 -------
+bool operator < (const Mac48Address &a, const Mac48Address &b)
+{
+ uint8_t aP[6];
+ uint8_t bP[6];
+ a.CopyTo (aP);
+ b.CopyTo (bP); 

Isn't it easier/faster to compare directly m_data of a and b?  I think you can
do it if only operator < is a member of the class... (in C++ you can access
private members of other instances of the same class!).


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


More information about the Ns-bugs mailing list