summaryrefslogtreecommitdiff
path: root/src/network/core/address.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/address.h')
-rw-r--r--src/network/core/address.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h
index 863c43427..ecf6efa60 100644
--- a/src/network/core/address.h
+++ b/src/network/core/address.h
@@ -207,6 +207,15 @@ public:
{
return const_cast<NetworkAddress*>(this)->CompareTo(address) == 0;
}
+ /**
+ * Compare the address of this class with the address of another.
+ * @param address the other address.
+ * @return true if both do not match.
+ */
+ bool operator != (NetworkAddress address) const
+ {
+ return const_cast<NetworkAddress*>(this)->CompareTo(address) != 0;
+ }
/**
* Compare the address of this class with the address of another.