You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2014/06/07 00:52:33 UTC
git commit: Added an equal operator for IntervalSet.
Repository: mesos
Updated Branches:
refs/heads/master 87ff24435 -> da48fd4ee
Added an equal operator for IntervalSet.
Review: https://reviews.apache.org/r/22331
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/da48fd4e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/da48fd4e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/da48fd4e
Branch: refs/heads/master
Commit: da48fd4ee506d7f1cb8e27aa6d2009462e01732d
Parents: 87ff244
Author: Jie Yu <yu...@gmail.com>
Authored: Tue May 27 17:51:01 2014 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Fri Jun 6 15:52:08 2014 -0700
----------------------------------------------------------------------
.../libprocess/3rdparty/stout/include/stout/interval.hpp | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/da48fd4e/3rdparty/libprocess/3rdparty/stout/include/stout/interval.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/interval.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/interval.hpp
index cfa8e69..a470307 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/interval.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/interval.hpp
@@ -238,6 +238,16 @@ public:
}
// Overloaded operators.
+ bool operator == (const IntervalSet<T>& that) const
+ {
+ return static_cast<const Base&>(*this) == static_cast<const Base&>(that);
+ }
+
+ bool operator != (const IntervalSet<T>& that) const
+ {
+ return !operator == (that);
+ }
+
IntervalSet<T>& operator += (const T& value)
{
static_cast<Base&>(*this) += value;