You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2018/02/19 14:19:13 UTC
[2/4] mesos git commit: Added comparison operators for 'v1::UUID'.
Added comparison operators for 'v1::UUID'.
Review: https://reviews.apache.org/r/65672/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2aed1d6c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2aed1d6c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2aed1d6c
Branch: refs/heads/master
Commit: 2aed1d6ca2c31546d700dd79484c193625fc8cc9
Parents: ddecf8e
Author: Jan Schlicht <ja...@mesosphere.io>
Authored: Mon Feb 19 15:15:40 2018 +0100
Committer: Benjamin Bannier <bb...@apache.org>
Committed: Mon Feb 19 15:15:40 2018 +0100
----------------------------------------------------------------------
include/mesos/v1/mesos.hpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/2aed1d6c/include/mesos/v1/mesos.hpp
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.hpp b/include/mesos/v1/mesos.hpp
index 04b8fd5..15723a2 100644
--- a/include/mesos/v1/mesos.hpp
+++ b/include/mesos/v1/mesos.hpp
@@ -124,6 +124,12 @@ inline bool operator==(
}
+inline bool operator==(const UUID& left, const UUID& right)
+{
+ return left.value() == right.value();
+}
+
+
inline bool operator==(const AgentID& left, const AgentID& right)
{
return left.value() == right.value();
@@ -277,6 +283,12 @@ inline bool operator!=(
}
+inline bool operator!=(const UUID& left, const UUID& right)
+{
+ return !(left == right);
+}
+
+
inline bool operator!=(const AgentID& left, const AgentID& right)
{
return left.value() != right.value();