Repository: mesos Updated Branches: refs/heads/master b08fccf8f -> ca2e8efca
MESOS-1857 Fixed path::join() on older libstdc++ which lack back(). Review: https://reviews.apache.org/r/26256 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ca2e8efc Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ca2e8efc Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ca2e8efc Branch: refs/heads/master Commit: ca2e8efcad7d312c6e93acd3546b6811a9f0df19 Parents: b08fccf Author: Cody Maloney <[email protected]> Authored: Thu Oct 2 10:02:04 2014 -0700 Committer: Vinod Kone <[email protected]> Committed: Thu Oct 2 10:02:05 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/ca2e8efc/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 63433ef..357a75a 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.back() == '/') { + if (path[path.size()-1] == '/') { return path + tailJoined; } return strings::join("/", path, tailJoined);
