Updated Branches:
  refs/heads/master 178e778c4 -> ed3f0438d

Added another argument to strings::format.

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


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

Branch: refs/heads/master
Commit: 58294bc836e440812a8ebad92d09804ace99cfe3
Parents: 178e778
Author: Benjamin Mahler <bmah...@twitter.com>
Authored: Mon Jan 13 11:40:26 2014 -0800
Committer: Benjamin Mahler <bmah...@twitter.com>
Committed: Wed Jan 22 13:03:10 2014 -0800

----------------------------------------------------------------------
 .../3rdparty/stout/include/stout/format.hpp     | 43 ++++++++++++++++++++
 1 file changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/58294bc8/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 2d25af8..3eadaef 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
@@ -335,6 +335,49 @@ Try<std::string> format(const std::string& s,
       internal::stringify<T10, !std::tr1::is_pod<T10>::value>(t10).get(),
       internal::stringify<T11, !std::tr1::is_pod<T11>::value>(t11).get());
 }
+
+
+template <typename T1,
+          typename T2,
+          typename T3,
+          typename T4,
+          typename T5,
+          typename T6,
+          typename T7,
+          typename T8,
+          typename T9,
+          typename T10,
+          typename T11,
+          typename T12>
+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,
+                        const T12& t12)
+{
+  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(),
+      internal::stringify<T12, !std::tr1::is_pod<T12>::value>(t12).get());
+}
 #endif // __cplusplus >= 201103L
 
 

Reply via email to