From 74af818eafbd2f585678c4974fd4e1fe8129de17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Mon, 4 Sep 2017 13:28:05 +0100 Subject: [PATCH] counters: add counter_id::operator> --- counters.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/counters.hh b/counters.hh index 030ac1dbb5..cd9f34008c 100644 --- a/counters.hh +++ b/counters.hh @@ -49,6 +49,9 @@ public: bool operator<(const counter_id& other) const { return to_uuid() < other.to_uuid(); } + bool operator>(const counter_id& other) const { + return other.to_uuid() < to_uuid(); + } bool operator==(const counter_id& other) const { return to_uuid() == other.to_uuid(); }