diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-08 17:16:57 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 20:23:55 -0700 |
| commit | e8d5fb89e4465e8ef64920f12e7cb60e82057658 (patch) | |
| tree | eda79c38cbe3b018b91038d642ccc48bcc9f93b8 /Source/Core/DiscIO/Filesystem.h | |
| parent | b5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff) | |
C++20: Synthesize `operator!=` From `operator==`
The inequality operator is automatically generated by the compiler if `operator==` is defined.
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.h')
| -rw-r--r-- | Source/Core/DiscIO/Filesystem.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Filesystem.h b/Source/Core/DiscIO/Filesystem.h index 03300ab417..dd85b6282d 100644 --- a/Source/Core/DiscIO/Filesystem.h +++ b/Source/Core/DiscIO/Filesystem.h @@ -60,7 +60,6 @@ public: { return m_file_info ? (it.m_file_info && *m_file_info == *it.m_file_info) : (!it.m_file_info); } - bool operator!=(const const_iterator& it) const { return !operator==(it); } // Incrementing or destroying an iterator will invalidate its returned references and // pointers, but will not invalidate copies of the iterator or file info object. const FileInfo& operator*() const { return *m_file_info.get(); } @@ -73,7 +72,6 @@ public: virtual ~FileInfo(); bool operator==(const FileInfo& other) const { return GetAddress() == other.GetAddress(); } - bool operator!=(const FileInfo& other) const { return !operator==(other); } virtual std::unique_ptr<FileInfo> clone() const = 0; virtual const_iterator cbegin() const { return begin(); } virtual const_iterator cend() const { return end(); } |
