Repository: mesos
Updated Branches:
  refs/heads/master 68d6b5e32 -> 26baf5531


Revert "MESOS-1857 Fixed path::join() on older libstdc++ which lack back()."

This reverts commit ca2e8efcad7d312c6e93acd3546b6811a9f0df19.


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

Branch: refs/heads/master
Commit: 1e15ff1be67d94bf7b3b267bdd732b8a15aac93f
Parents: 68d6b5e
Author: Benjamin Mahler <[email protected]>
Authored: Thu Oct 23 16:47:39 2014 -0700
Committer: Benjamin Mahler <[email protected]>
Committed: Thu Oct 23 16:47:39 2014 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/1e15ff1b/3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp 
b/3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp
index 357a75a..63433ef 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/path.hpp
@@ -39,7 +39,7 @@ std::string join(const std::string& path, T&&... tail)
   // If the first chunk ends with a '/', don't append another using
   // join. This also handles the case with the first path part is just
   // '/'.
-  if (path[path.size()-1] == '/') {
+  if (path.back() == '/') {
     return path + tailJoined;
   }
   return strings::join("/", path, tailJoined);

Reply via email to