From 298e02d3cce8dd67ca19709a57bc9c77ced4c7c6 Mon Sep 17 00:00:00 2001 From: Vektor Date: Thu, 14 Dec 2023 12:24:48 +0100 Subject: [PATCH] fix(shared): fix vector operators --- deps/alt-math/alt-math.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/alt-math/alt-math.h b/deps/alt-math/alt-math.h index e8799de..a7d98e3 100644 --- a/deps/alt-math/alt-math.h +++ b/deps/alt-math/alt-math.h @@ -160,12 +160,17 @@ namespace alt for (std::size_t i = 0; i < Width; ++i) { - if (this[i] != other[i]) + if ((*this)[i] != other[i]) return false; } return true; } + + bool operator!=(const Vector& other) const + { + return !(*this == other); + } }; template>