diff options
Diffstat (limited to 'src/net/StaticSocketAddress.hxx')
-rw-r--r-- | src/net/StaticSocketAddress.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/StaticSocketAddress.hxx b/src/net/StaticSocketAddress.hxx index 0a780f6f6..c8cef9dfe 100644 --- a/src/net/StaticSocketAddress.hxx +++ b/src/net/StaticSocketAddress.hxx @@ -92,9 +92,11 @@ public: } gcc_pure - bool operator==(const StaticSocketAddress &other) const; + bool operator==(SocketAddress other) const { + return (SocketAddress)*this == other; + } - bool operator!=(const StaticSocketAddress &other) const { + bool operator!=(SocketAddress &other) const { return !(*this == other); } }; |