From 13cc42305099fe8dc46cca370c1c5ec02c033f91 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 28 Apr 2014 21:03:19 +0200 Subject: [PATCH] os: Add Point::operator == --- os/include/util/geometry.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/include/util/geometry.h b/os/include/util/geometry.h index 75606e07b..423cfd6f8 100644 --- a/os/include/util/geometry.h +++ b/os/include/util/geometry.h @@ -56,6 +56,11 @@ class Genode::Point * Operator for testing non-equality of two points */ bool operator != (Point const &p) const { return p.x() != _x || p.y() != _y; } + + /** + * Operator for testing equality of two points + */ + bool operator == (Point const &p) const { return p.x() == _x && p.y() == _y; } };