You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/03/01 22:28:28 UTC

[2/2] mesos git commit: Stout: Added `WindowsError` constructor to `Result`.

Stout: Added `WindowsError` constructor to `Result`.

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


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

Branch: refs/heads/master
Commit: ff90803bfba932e7fd4c578cbdc9b83f6ecc2a34
Parents: c7dea58
Author: Alex Clemmer <cl...@gmail.com>
Authored: Tue Mar 1 11:29:58 2016 -0800
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Tue Mar 1 13:28:20 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/ff90803b/3rdparty/libprocess/3rdparty/stout/include/stout/result.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/result.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/result.hpp
index 577c8e4..5d93ee0 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/result.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/result.hpp
@@ -85,6 +85,11 @@ public:
   Result(const ErrnoError& error)
     : data(error) {}
 
+#ifdef __WINDOWS__
+  Result(const WindowsError& error)
+    : data(error) {}
+#endif // __WINDOWS__
+
   // We don't need to implement these because we are leveraging
   // Try<Option<T>>.
   Result(const Result<T>& that) = default;