mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-31 17:04:40 -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:
@@ -15,8 +15,3 @@ bool FBInfo::operator==(const FBInfo& other) const
|
||||
return m_height == other.m_height && m_width == other.m_width &&
|
||||
m_texture_format == other.m_texture_format;
|
||||
}
|
||||
|
||||
bool FBInfo::operator!=(const FBInfo& other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ struct FBInfo
|
||||
TextureFormat m_texture_format = TextureFormat::I4;
|
||||
u32 CalculateHash() const;
|
||||
bool operator==(const FBInfo& other) const;
|
||||
bool operator!=(const FBInfo& other) const;
|
||||
};
|
||||
|
||||
struct FBInfoHasher
|
||||
|
||||
Reference in New Issue
Block a user