From fee9a3796c8f1a375b780e7934becc7a35d75871 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 28 Apr 2023 10:17:33 -0400 Subject: [PATCH] Cleanup: Add not equal operator to compute constext hash --- source/blender/blenlib/BLI_compute_context.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/blenlib/BLI_compute_context.hh b/source/blender/blenlib/BLI_compute_context.hh index e3e5b6f9e85..9746fe29ef5 100644 --- a/source/blender/blenlib/BLI_compute_context.hh +++ b/source/blender/blenlib/BLI_compute_context.hh @@ -58,6 +58,11 @@ struct ComputeContextHash { return a.v1 == b.v1 && a.v2 == b.v2; } + friend bool operator!=(const ComputeContextHash &a, const ComputeContextHash &b) + { + return !(a == b); + } + void mix_in(const void *data, int64_t len); friend std::ostream &operator<<(std::ostream &stream, const ComputeContextHash &hash);