diff --git a/common/include/palette.h b/common/include/palette.h index 78fd059d6..4c403e508 100644 --- a/common/include/palette.h +++ b/common/include/palette.h @@ -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 {};