blob: 5b087737f2d91c445867276d472608dc6a496384 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- netmap/lookup.h.orig
+++ netmap/lookup.h
@@ -14,10 +14,10 @@
string ip;
string hostname;
- bool operator==(const HostRec& hr)
+ bool operator==(const HostRec& hr) const
{ return ip == hr.ip && hostname == hr.hostname; }
- bool operator<(const HostRec& hr)
+ bool operator<(const HostRec& hr) const
{ return ip==hr.ip ? hostname<hr.hostname : ip<hr.ip; }
};
|