mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbann...@apache.org
Subject [2/4] mesos git commit: Added comparison operators for 'v1::UUID'.
Date Mon, 19 Feb 2018 14:19:13 GMT
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 <jan@mesosphere.io>
Authored: Mon Feb 19 15:15:40 2018 +0100
Committer: Benjamin Bannier <bbannier@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();


Mime
View raw message