Use explicitly defaulted rgb_t::operator==

This commit is contained in:
Kp 2022-10-09 23:15:19 +00:00
parent dd1aed76c5
commit f40b7ba315

View file

@ -38,12 +38,12 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
struct rgb_t {
ubyte r,g,b;
[[nodiscard]]
constexpr bool operator==(const rgb_t &) const = default;
};
typedef uint8_t color_t;
static inline bool operator==(const rgb_t &a, const rgb_t &b) { return a.r == b.r && a.g == b.g && a.b == b.b; }
namespace dcx {
struct palette_array_t : public std::array<rgb_t, 256> {};