You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2013/11/13 00:26:51 UTC
[2/2] git commit: Expanded stout::format() to handle 11 parameters.
Expanded stout::format() to handle 11 parameters.
From: Eric Biederman <eb...@xmission.com>
Review: https://reviews.apache.org/r/15013
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9fb55241
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9fb55241
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9fb55241
Branch: refs/heads/master
Commit: 9fb5524171fb995e86ab2decf885dd06cda3bc95
Parents: 8e13a26
Author: Vinod Kone <vi...@twitter.com>
Authored: Tue Nov 12 14:59:41 2013 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Tue Nov 12 15:00:09 2013 -0800
----------------------------------------------------------------------
.../3rdparty/stout/include/stout/format.hpp | 39 ++++++++++++++++++++
1 file changed, 39 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/9fb55241/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
index 71b5986..cae7fcb 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
@@ -279,6 +279,45 @@ Try<std::string> format(const std::string& s,
internal::stringify<T9, !std::tr1::is_pod<T9>::value>(t9).get(),
internal::stringify<T10, !std::tr1::is_pod<T10>::value>(t10).get());
}
+
+template <typename T1,
+ typename T2,
+ typename T3,
+ typename T4,
+ typename T5,
+ typename T6,
+ typename T7,
+ typename T8,
+ typename T9,
+ typename T10,
+ typename T11>
+Try<std::string> format(const std::string& s,
+ const T1& t1,
+ const T2& t2,
+ const T3& t3,
+ const T4& t4,
+ const T5& t5,
+ const T6& t6,
+ const T7& t7,
+ const T8& t8,
+ const T9& t9,
+ const T10& t10,
+ const T11& t11)
+{
+ return internal::format(
+ s,
+ internal::stringify<T1, !std::tr1::is_pod<T1>::value>(t1).get(),
+ internal::stringify<T2, !std::tr1::is_pod<T2>::value>(t2).get(),
+ internal::stringify<T3, !std::tr1::is_pod<T3>::value>(t3).get(),
+ internal::stringify<T4, !std::tr1::is_pod<T4>::value>(t4).get(),
+ internal::stringify<T5, !std::tr1::is_pod<T5>::value>(t5).get(),
+ internal::stringify<T6, !std::tr1::is_pod<T6>::value>(t6).get(),
+ internal::stringify<T7, !std::tr1::is_pod<T7>::value>(t7).get(),
+ internal::stringify<T8, !std::tr1::is_pod<T8>::value>(t8).get(),
+ internal::stringify<T9, !std::tr1::is_pod<T9>::value>(t9).get(),
+ internal::stringify<T10, !std::tr1::is_pod<T10>::value>(t10).get(),
+ internal::stringify<T11, !std::tr1::is_pod<T11>::value>(t11).get());
+}
#endif // __cplusplus >= 201103L