mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-12 12:02:42 -04:00
C++20: Synthesize operator!= From operator==
The inequality operator is automatically generated by the compiler if `operator==` is defined.
This commit is contained in:
@@ -30,21 +30,11 @@ bool operator==(const GeckoCode& lhs, const GeckoCode& rhs)
|
||||
return lhs.codes == rhs.codes;
|
||||
}
|
||||
|
||||
bool operator!=(const GeckoCode& lhs, const GeckoCode& rhs)
|
||||
{
|
||||
return !operator==(lhs, rhs);
|
||||
}
|
||||
|
||||
bool operator==(const GeckoCode::Code& lhs, const GeckoCode::Code& rhs)
|
||||
{
|
||||
return std::tie(lhs.address, lhs.data) == std::tie(rhs.address, rhs.data);
|
||||
}
|
||||
|
||||
bool operator!=(const GeckoCode::Code& lhs, const GeckoCode::Code& rhs)
|
||||
{
|
||||
return !operator==(lhs, rhs);
|
||||
}
|
||||
|
||||
enum class Installation
|
||||
{
|
||||
Uninstalled,
|
||||
|
||||
Reference in New Issue
Block a user