diff --git a/Source/common/SantaCacheTest.mm b/Source/common/SantaCacheTest.mm index 528f23e6a..0c800210b 100644 --- a/Source/common/SantaCacheTest.mm +++ b/Source/common/SantaCacheTest.mm @@ -14,6 +14,7 @@ #import +#include #include #include #include @@ -245,9 +246,7 @@ - (void)testCompareAndSwap { uint64_t first_val; uint64_t second_val; - bool operator==(const S &rhs) { - return first_val == rhs.first_val && second_val == rhs.second_val; - } + auto operator<=>(const S &rhs) const = default; }; template <> uint64_t SantaCacheHasher(S const &s) {