Use default equality operator for Address

This commit is contained in:
Tyler Neely 2022-08-08 11:32:42 +00:00
parent a4b1d5efb4
commit 7bac0d1c61

View File

@ -37,10 +37,7 @@ struct Address {
return ret;
}
bool operator==(const Address &other) const {
return (unique_id == other.unique_id) && (last_known_ip == other.last_known_ip) &&
(last_known_port == other.last_known_port);
}
bool operator==(const Address &other) const = default;
/// unique_id is most dominant for ordering, then last_known_ip, then last_known_port
bool operator<(const Address &other) const {