Add operator== to Fixed type to enable Vector comparisons

This commit is contained in:
Martín Capello 2022-12-30 18:12:52 -03:00
parent db9db191f5
commit dbeec18ef5

View File

@ -44,6 +44,10 @@ namespace doc {
public: public:
struct Fixed { struct Fixed {
fixmath::fixed value; fixmath::fixed value;
bool operator==(const Fixed& f) const {
return this->value == f.value;
}
}; };
struct Variant; struct Variant;
using Vector = std::vector<Variant>; using Vector = std::vector<Variant>;