From e8d5fb89e4465e8ef64920f12e7cb60e82057658 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:16:57 -0700 Subject: C++20: Synthesize `operator!=` From `operator==` The inequality operator is automatically generated by the compiler if `operator==` is defined. --- Source/Core/InputCommon/ImageOperations.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Source/Core/InputCommon/ImageOperations.h') diff --git a/Source/Core/InputCommon/ImageOperations.h b/Source/Core/InputCommon/ImageOperations.h index da8b938c15..72887d1db2 100644 --- a/Source/Core/InputCommon/ImageOperations.h +++ b/Source/Core/InputCommon/ImageOperations.h @@ -21,7 +21,6 @@ struct Pixel u8 a = 0; bool operator==(const Pixel& o) const { return r == o.r && g == o.g && b == o.b && a == o.a; } - bool operator!=(const Pixel& o) const { return !(o == *this); } }; using Point = Common::TVec2; -- cgit v1.2.3