diff --git a/repos/base/include/base/affinity.h b/repos/base/include/base/affinity.h index 7421d1d074..2d45725ba2 100644 --- a/repos/base/include/base/affinity.h +++ b/repos/base/include/base/affinity.h @@ -167,6 +167,13 @@ class Genode::Affinity node.attribute_value("height", default_height)); } + bool operator==(Location const &rhs) { + return this->_xpos == rhs._xpos && this->_ypos == rhs._ypos && this->height() == rhs.height() && this->width() == rhs.width(); + } + + bool operator!=(Location const &rhs) { + return !(*this == rhs); + } }; private: