You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/01/25 01:14:43 UTC
[2/7] git commit: Added overload of numify.
Added overload of numify.
Review: https://reviews.apache.org/r/17091
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5bc2d73d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5bc2d73d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5bc2d73d
Branch: refs/heads/master
Commit: 5bc2d73df366fd59fc3f1ae10dd9d0861ba191db
Parents: df8ffd0
Author: Benjamin Hindman <be...@gmail.com>
Authored: Sat Jan 18 10:20:36 2014 -0800
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Fri Jan 24 16:14:01 2014 -0800
----------------------------------------------------------------------
3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/5bc2d73d/3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp
index ef49fbb..ddd3dd9 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/numify.hpp
@@ -36,6 +36,13 @@ Try<T> numify(const std::string& s)
template <typename T>
+Try<T> numify(const char* s)
+{
+ return numify<T>(std::string(s));
+}
+
+
+template <typename T>
Result<T> numify(const Option<std::string>& s)
{
if (s.isSome()) {