mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-21 02:00:33 +01:00
fixed GH# 188: Net: SocketAddress operator < unusable for std::map key
This commit is contained in:
parent
28320ddb1e
commit
e6a24b3101
@ -161,11 +161,11 @@ SocketAddress::~SocketAddress()
|
|||||||
|
|
||||||
bool SocketAddress::operator < (const SocketAddress& socketAddress) const
|
bool SocketAddress::operator < (const SocketAddress& socketAddress) const
|
||||||
{
|
{
|
||||||
if (family() < addr.family()) return true;
|
if (family() < socketAddress.family()) return true;
|
||||||
if (family() > addr.family()) return false;
|
if (family() > socketAddress.family()) return false;
|
||||||
if (host() < addr.host()) return true;
|
if (host() < socketAddress.host()) return true;
|
||||||
if (host() > addr.host()) return false;
|
if (host() > socketAddress.host()) return false;
|
||||||
return (port() < addr.port());
|
return (port() < socketAddress.port());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user