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 2012/10/27 00:07:15 UTC
svn commit: r1402693 -
/incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp
Author: benh
Date: Fri Oct 26 22:07:15 2012
New Revision: 1402693
URL: http://svn.apache.org/viewvc?rev=1402693&view=rev
Log:
Added more path::join variants.
Review: https://reviews.apache.org/r/7716
Modified:
incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp
Modified: incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp?rev=1402693&r1=1402692&r2=1402693&view=diff
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp (original)
+++ incubator/mesos/trunk/third_party/libprocess/include/stout/path.hpp Fri Oct 26 22:07:15 2012
@@ -31,7 +31,30 @@ inline std::string join(
const std::string& path3,
const std::string& path4)
{
- return join(path1, join(path2, join(path3, path4)));
+ return join(path1, join(path2, path3, path4));
+}
+
+
+inline std::string join(
+ const std::string& path1,
+ const std::string& path2,
+ const std::string& path3,
+ const std::string& path4,
+ const std::string& path5)
+{
+ return join(path1, join(path2, join(path3, join(path4, path5))));
+}
+
+
+inline std::string join(
+ const std::string& path1,
+ const std::string& path2,
+ const std::string& path3,
+ const std::string& path4,
+ const std::string& path5,
+ const std::string& path6)
+{
+ return join(path1, join(path2, path3, path4, path5, path6));
}