aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/eventstats.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/eventstats.h b/lib/eventstats.h
index 9be83377..77c661a7 100644
--- a/lib/eventstats.h
+++ b/lib/eventstats.h
@@ -37,7 +37,14 @@ public:
//! the previous run of the client).
bool isEstimate = true;
- bool operator==(const EventStats& rhs) const& = default;
+ // TODO: replace with = default once C++20 becomes a requirement on clients
+ bool operator==(const EventStats& rhs) const
+ {
+ return notableCount == rhs.notableCount
+ && highlightCount == rhs.highlightCount
+ && isEstimate == rhs.isEstimate;
+ }
+ bool operator!=(const EventStats& rhs) const { return !operator==(rhs); }
//! \brief Check whether the event statistics are empty
//!