Subject: [Boost-bugs] [Boost C++ Libraries] #3185: absolute path error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-17 09:10:19
#3185: absolute path error
--------------------------------------+-------------------------------------
Reporter: tmmikolajczyk_at_[hidden] | Owner: bemandawes
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: filesystem
Version: Boost 1.37.0 | Severity: Problem
Keywords: filesystem absolute path |
--------------------------------------+-------------------------------------
I have the following function that checks if a particular path is absolute
or relative:
bool isPathAbsolute(const std::string& path) {
return !boost::filesystem::path(path).root_directory().empty();
}
Seems that it works fine for the following paths:
"/" absolute
"/root" absolute
"///" absolute
"////" absolute
However, for unknown reason function says that the path "//" is not
absolute. See attached very simple code that presents this problem.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3185> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC