Use explicitly defaulted callsign_t::operator==

This commit is contained in:
Kp 2022-10-09 23:15:19 +00:00
parent 5d412f3c19
commit 49fccd64ad

View file

@ -77,13 +77,7 @@ struct callsign_t
{
return &a[0];
};
bool operator==(const callsign_t &r) const
{
return a == r.a;
}
bool operator!=(const callsign_t &r) const
{
return !(*this == r);
}
[[nodiscard]]
constexpr bool operator==(const callsign_t &r) const = default;
};
static_assert(sizeof(callsign_t) == CALLSIGN_LEN + 1, "callsign_t too big");