Net/StaticSocketAddress: add equality operator with SocketAddress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user