From dbeec18ef5db3807f43100771d747186cc8d21cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Fri, 30 Dec 2022 18:12:52 -0300 Subject: [PATCH] Add operator== to Fixed type to enable Vector comparisons --- src/doc/user_data.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/doc/user_data.h b/src/doc/user_data.h index 2642b8248..2c938a6ba 100644 --- a/src/doc/user_data.h +++ b/src/doc/user_data.h @@ -44,6 +44,10 @@ namespace doc { public: struct Fixed { fixmath::fixed value; + + bool operator==(const Fixed& f) const { + return this->value == f.value; + } }; struct Variant; using Vector = std::vector;