|
Bugzilla – Full Text Bug Listing |
| Summary: | Add Ipv4Address operator < | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Component: | network | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | P1 | ||
| Version: | pre-release | ||
| Hardware: | PC | ||
| OS: | Linux | ||
I have to confess that I hate it but I see the use-case. Please, commit. Committed as rev 784. |
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.