blob: 724e780cba24a0105ad129bdbfe2af7c3c752324 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- netmap/hostclass.h.orig
+++ netmap/hostclass.h
@@ -48,10 +48,10 @@
HostClass* a;
HostClass* b;
- bool operator==(HostLink& hl)
+ bool operator==(const HostLink& hl) const
{ return a == hl.a && b == hl.b; }
- bool operator <(HostLink& hl)
+ bool operator <(const HostLink& hl) const
{ return a==hl.a ? b < hl.b : a < hl.a; }
};
|