mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
remove use of operator<=>
it doesn't work on mac
This commit is contained in:
parent
8a1ecbe5ab
commit
500e6f2d26
1 changed files with 20 additions and 3 deletions
|
@ -44,11 +44,28 @@ namespace geode {
|
||||||
return m_patch;
|
return m_patch;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr std::strong_ordering operator<=>(VersionInfo const& other) const {
|
// Apple clang does not support operator<=>! Yippee!
|
||||||
return std::tie(m_major, m_minor, m_patch) <=>
|
|
||||||
|
constexpr bool operator==(VersionInfo const& other) const {
|
||||||
|
return std::tie(m_major, m_minor, m_patch) ==
|
||||||
|
std::tie(other.m_major, other.m_minor, other.m_patch);
|
||||||
|
}
|
||||||
|
constexpr bool operator<(VersionInfo const& other) const {
|
||||||
|
return std::tie(m_major, m_minor, m_patch) <
|
||||||
|
std::tie(other.m_major, other.m_minor, other.m_patch);
|
||||||
|
}
|
||||||
|
constexpr bool operator<=(VersionInfo const& other) const {
|
||||||
|
return std::tie(m_major, m_minor, m_patch) <=
|
||||||
|
std::tie(other.m_major, other.m_minor, other.m_patch);
|
||||||
|
}
|
||||||
|
constexpr bool operator>(VersionInfo const& other) const {
|
||||||
|
return std::tie(m_major, m_minor, m_patch) >
|
||||||
|
std::tie(other.m_major, other.m_minor, other.m_patch);
|
||||||
|
}
|
||||||
|
constexpr bool operator>=(VersionInfo const& other) const {
|
||||||
|
return std::tie(m_major, m_minor, m_patch) >=
|
||||||
std::tie(other.m_major, other.m_minor, other.m_patch);
|
std::tie(other.m_major, other.m_minor, other.m_patch);
|
||||||
}
|
}
|
||||||
constexpr bool operator==(VersionInfo const& other) const = default;
|
|
||||||
|
|
||||||
std::string toString() const;
|
std::string toString() const;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue