Repository: mesos
Updated Branches:
  refs/heads/master c92f88c6f -> 971583522


MESOS-2943: Add comment for explicit return type.

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


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

Branch: refs/heads/master
Commit: 971583522b3ada19f91d58fd89c0d3d17f5fef34
Parents: c92f88c
Author: Joris Van Remoortere <[email protected]>
Authored: Tue Jul 7 14:54:56 2015 -0700
Committer: Benjamin Hindman <[email protected]>
Committed: Tue Jul 7 14:54:56 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/libevent_ssl_socket.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/97158352/3rdparty/libprocess/src/libevent_ssl_socket.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/libevent_ssl_socket.cpp 
b/3rdparty/libprocess/src/libevent_ssl_socket.cpp
index 1ef925c..9f8a051 100644
--- a/3rdparty/libprocess/src/libevent_ssl_socket.cpp
+++ b/3rdparty/libprocess/src/libevent_ssl_socket.cpp
@@ -782,6 +782,8 @@ Try<Nothing> LibeventSSLSocketImpl::listen(int backlog)
 
 Future<Socket> LibeventSSLSocketImpl::accept()
 {
+  // We explicitly specify the return type to avoid a type deduction
+  // issue in some versions of clang. See MESOS-2943.
   return accept_queue.get()
     .then([](const Future<Socket>& future) -> Future<Socket> {
       return future;

Reply via email to