diff --git a/gms/inet_address.hh b/gms/inet_address.hh index 0dc7766b2b..9ffce574c5 100644 --- a/gms/inet_address.hh +++ b/gms/inet_address.hh @@ -58,13 +58,9 @@ public: bytes_view bytes() const noexcept { return bytes_view(reinterpret_cast(_addr.data()), _addr.size()); } - // TODO remove - uint32_t raw_addr() const { - return addr().as_ipv4_address().ip; - } - friend inline bool operator==(const inet_address& x, const inet_address& y) noexcept = default; - friend inline bool operator<(const inet_address& x, const inet_address& y) noexcept { - return x.bytes() < y.bytes(); + constexpr bool operator==(const inet_address&) const noexcept = default; + constexpr auto operator<=>(const inet_address& o) const noexcept { + return bytes() <=> o.bytes(); } friend struct std::hash;