net/SocketAdddress: remove unnecessary operator!=()
The compiler must generate this implicitly from operator==().
This commit is contained in:
parent
bc758cece0
commit
ea96b321dc
@ -67,12 +67,6 @@ public:
|
|||||||
return (SocketAddress)*this == std::forward<T>(other);
|
return (SocketAddress)*this == std::forward<T>(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
[[gnu::pure]]
|
|
||||||
bool operator!=(T &&other) const noexcept {
|
|
||||||
return !(*this == std::forward<T>(other));
|
|
||||||
}
|
|
||||||
|
|
||||||
[[gnu::const]]
|
[[gnu::const]]
|
||||||
static AllocatedSocketAddress Null() noexcept {
|
static AllocatedSocketAddress Null() noexcept {
|
||||||
return AllocatedSocketAddress(nullptr, 0);
|
return AllocatedSocketAddress(nullptr, 0);
|
||||||
|
@ -121,9 +121,4 @@ public:
|
|||||||
bool operator==(SocketAddress other) const noexcept {
|
bool operator==(SocketAddress other) const noexcept {
|
||||||
return static_cast<const SocketAddress>(*this) == other;
|
return static_cast<const SocketAddress>(*this) == other;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] [[gnu::pure]]
|
|
||||||
bool operator!=(SocketAddress other) const noexcept {
|
|
||||||
return !(*this == other);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
@ -169,8 +169,4 @@ public:
|
|||||||
|
|
||||||
[[gnu::pure]]
|
[[gnu::pure]]
|
||||||
bool operator==(const SocketAddress other) const noexcept;
|
bool operator==(const SocketAddress other) const noexcept;
|
||||||
|
|
||||||
bool operator!=(const SocketAddress other) const noexcept {
|
|
||||||
return !(*this == other);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
@ -141,8 +141,4 @@ public:
|
|||||||
bool operator==(SocketAddress other) const noexcept {
|
bool operator==(SocketAddress other) const noexcept {
|
||||||
return (SocketAddress)*this == other;
|
return (SocketAddress)*this == other;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator!=(SocketAddress other) const noexcept {
|
|
||||||
return !(*this == other);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user