make the defaulted comparison functions not constexpr for macos

This commit is contained in:
HJfod 2024-03-26 21:21:37 +02:00
parent 575a7cb7e0
commit 269ba9002a

View file

@ -6,15 +6,15 @@
using namespace geode::prelude;
struct UpdatePageNumberState final {
constexpr bool operator==(UpdatePageNumberState const&) const = default;
bool operator==(UpdatePageNumberState const&) const = default;
};
struct UpdateWholeState final {
constexpr bool operator==(UpdateWholeState const&) const = default;
bool operator==(UpdateWholeState const&) const = default;
};
struct UpdateModState final {
std::string modID;
inline explicit UpdateModState(std::string const& modID) : modID(modID) {};
constexpr bool operator==(UpdateModState const&) const = default;
bool operator==(UpdateModState const&) const = default;
};
using UpdateState = std::variant<UpdatePageNumberState, UpdateWholeState, UpdateModState>;