diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-08-24 00:51:26 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-08-24 00:51:26 +0200 |
commit | f0a862e71bc12d86a898901ef773475a7c964832 (patch) | |
tree | d0dde0ae128a81734d0a2566aef34393b4bdecb3 /src/common/Debugging | |
parent | f108a50abf82abd0973878ef88fdab47a408238c (diff) |
Core/Misc: Modernize comparison operators
Diffstat (limited to 'src/common/Debugging')
-rw-r--r-- | src/common/Debugging/WheatyExceptionReport.h | 8 |
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; |