Bugzilla – Bug 39
Add Ipv4Address operator <
Last modified: 2007-06-19 12:00:55 UTC
Any objections about adding this? namespace ns3 { bool operator < (Ipv4Address const &addrA, Ipv4Address const &addrB) { return (addrA.GetHostOrder () < addrB.GetHostOrder ()); } } I discovered I needed it in order to store Ipv4Addresses in a std::set.
I have to confess that I hate it but I see the use-case. Please, commit.
Committed as rev 784.