[Ns-developers] Mac48Address operator < cosmetics

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Mon Mar 16 00:15:22 PDT 2009


On Sun, 2009-03-15 at 15:34 +0300, Pavel Boyko wrote:
> Hi all,
> 
>   First 4 lines of this method (node/mac48-address.cc by Mathieu) seem to be 
> meaningless:

the internal buffer of the Mac48Address class is not public, hence the
need for the two copies. If you really wish to avoid them (can you
actually see this code in a real performance profile ?), you would need
to make operator < a friend of Mac48Address and modify the code to
access the internal buffer. Feel free to send a patch and, if you do,
please, attach it to www.nsnam.org/bugzilla

regards,
Mathieu



More information about the Ns-developers mailing list