Made WeakFuture<T>::get a const operation. Review: https://reviews.apache.org/r/23875
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/67b93459 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/67b93459 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/67b93459 Branch: refs/heads/master Commit: 67b93459ce603707317c6fdd05d91d6b8a8f0e2a Parents: 945264f Author: Benjamin Mahler <[email protected]> Authored: Wed Jul 23 19:19:18 2014 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Mon Aug 4 13:55:27 2014 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/include/process/future.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/67b93459/3rdparty/libprocess/include/process/future.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/include/process/future.hpp b/3rdparty/libprocess/include/process/future.hpp index e9966a2..db7fcbc 100644 --- a/3rdparty/libprocess/include/process/future.hpp +++ b/3rdparty/libprocess/include/process/future.hpp @@ -568,7 +568,7 @@ public: // Converts this weak reference to a concrete future. Returns none // if the conversion is not successful. - Option<Future<T> > get(); + Option<Future<T> > get() const; private: memory::weak_ptr<typename Future<T>::Data> data; @@ -581,7 +581,7 @@ WeakFuture<T>::WeakFuture(const Future<T>& future) template <typename T> -Option<Future<T> > WeakFuture<T>::get() +Option<Future<T> > WeakFuture<T>::get() const { Future<T> future; future.data = data.lock();
