Repository: mesos
Updated Branches:
  refs/heads/master da0880035 -> d37889da1


Add `hashset<T>::EMPTY` constant in stout.

Review: https://reviews.apache.org/r/33643


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ce293d3d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ce293d3d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ce293d3d

Branch: refs/heads/master
Commit: ce293d3d5ad2a57edf72d0f3b8e6bb48397ad6e8
Parents: da08800
Author: Joris Van Remoortere <[email protected]>
Authored: Thu May 7 14:56:04 2015 -0700
Committer: Benjamin Hindman <[email protected]>
Committed: Thu May 7 14:56:04 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ce293d3d/3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp 
b/3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp
index d2b7439..21b0599 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/hashset.hpp
@@ -30,6 +30,8 @@ template <typename Elem>
 class hashset : public boost::unordered_set<Elem>
 {
 public:
+  static const hashset<Elem>& EMPTY;
+
   // An explicit default constructor is needed so
   // 'const hashset<T> map;' is not an error.
   hashset() {}
@@ -68,6 +70,11 @@ public:
 };
 
 
+// TODO(jmlvanre): Possibly remove this reference as per MESOS-2694.
+template <typename Elem>
+const hashset<Elem>& hashset<Elem>::EMPTY = *new hashset<Elem>();
+
+
 // Union operator.
 template <typename Elem>
 hashset<Elem> operator | (const hashset<Elem>& left, const hashset<Elem>& 
right)

Reply via email to