This is an automated email from the ASF dual-hosted git repository.

bennoe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit b32dd46549e8bd2761e18e0fae69f38858279ea9
Author: Benjamin Bannier <[email protected]>
AuthorDate: Tue Jan 7 13:19:26 2020 +0100

    Allowed specifying path separator in a `path::join` overload.
    
    Review: https://reviews.apache.org/r/71881/
---
 3rdparty/stout/include/stout/path.hpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/3rdparty/stout/include/stout/path.hpp 
b/3rdparty/stout/include/stout/path.hpp
index 0338bf9..06a8a55 100644
--- a/3rdparty/stout/include/stout/path.hpp
+++ b/3rdparty/stout/include/stout/path.hpp
@@ -134,7 +134,9 @@ inline std::string join(
 }
 
 
-inline std::string join(const std::vector<std::string>& paths)
+inline std::string join(
+    const std::vector<std::string>& paths,
+    const char separator = os::PATH_SEPARATOR)
 {
   if (paths.empty()) {
     return "";
@@ -142,7 +144,7 @@ inline std::string join(const std::vector<std::string>& 
paths)
 
   std::string result = paths[0];
   for (size_t i = 1; i < paths.size(); ++i) {
-    result = join(result, paths[i]);
+    result = join(result, paths[i], separator);
   }
   return result;
 }

Reply via email to