aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/WheatyExceptionReport.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-08-24 00:51:26 +0200
committerShauren <shauren.trinity@gmail.com>2023-08-24 00:51:26 +0200
commitf0a862e71bc12d86a898901ef773475a7c964832 (patch)
treed0dde0ae128a81734d0a2566aef34393b4bdecb3 /src/common/Debugging/WheatyExceptionReport.h
parentf108a50abf82abd0973878ef88fdab47a408238c (diff)
Core/Misc: Modernize comparison operators
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.h')
-rw-r--r--src/common/Debugging/WheatyExceptionReport.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/common/Debugging/WheatyExceptionReport.h b/src/common/Debugging/WheatyExceptionReport.h
index 2b99dcbb83c..b1876528a78 100644
--- a/src/common/Debugging/WheatyExceptionReport.h
+++ b/src/common/Debugging/WheatyExceptionReport.h
@@ -7,6 +7,7 @@
#include <winnt.h>
#include <winternl.h>
#include <dbghelp.h>
+#include <compare>
#include <set>
#include <cstdlib>
#include <cstdio>
@@ -101,11 +102,8 @@ struct SymbolPair
_offset = offset;
}
- bool operator<(SymbolPair const& other) const
- {
- return _offset < other._offset ||
- (_offset == other._offset && _type < other._type);
- }
+ bool operator==(SymbolPair const& other) const = default;
+ std::strong_ordering operator<=>(SymbolPair const& other) const = default;
DWORD _type;
DWORD_PTR _offset;