[prev in list] [next in list] [prev in thread] [next in thread]
List: mesos-commits
Subject: [2/4] git commit: Added the ability to parse Byte flags.
From: bmahler () apache ! org
Date: 2013-09-23 23:53:57
Message-ID: 60df0bd56fe9458281ac8320d216410e () git ! apache ! org
[Download RAW message or body]
Added the ability to parse Byte flags.
Review: https://reviews.apache.org/r/14042
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c1189c03
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c1189c03
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c1189c03
Branch: refs/heads/master
Commit: c1189c03ebfededc9dd5723e843ffb7b857db664
Parents: 07fe3bf
Author: Benjamin Mahler <bmahler@twitter.com>
Authored: Wed Aug 28 12:41:52 2013 -0700
Committer: Benjamin Mahler <bmahler@twitter.com>
Committed: Mon Sep 23 16:26:00 2013 -0700
----------------------------------------------------------------------
.../libprocess/3rdparty/stout/include/stout/flags/parse.hpp | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c1189c03/3rdparty/libprocess/3rdparty/stout/include/stout/flags/parse.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/flags/parse.hpp \
b/3rdparty/libprocess/3rdparty/stout/include/stout/flags/parse.hpp index \
54eb35c..4c5b297 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/flags/parse.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/flags/parse.hpp
@@ -50,6 +50,13 @@ inline Try<Duration> parse(const std::string& value)
return Duration::parse(value);
}
+
+template <>
+inline Try<Bytes> parse(const std::string& value)
+{
+ return Bytes::parse(value);
+}
+
} // namespace flags {
#endif // __STOUT_FLAGS_PARSE_HPP__
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic