Subject: [Boost-bugs] [Boost C++ Libraries] #9682: first slash in path "a:/b/c" is interpreted as second node in [path.begin() parh.end()] sequence (windows)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-19 11:57:59
#9682: first slash in path "a:/b/c" is interpreted as second node in [path.begin()
parh.end()] sequence (windows)
------------------------------+------------------------
Reporter: anonymous | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
------------------------------+------------------------
//windows
boost::filesystem::path p("a:/b/c");
boost::filesystem::path result;
for(boost::filesystem::path::iterator it = p.begin(); it != p.end(); ++it)
{
result/=*it; //value of it on second iteration is '/'
}
assert(result.string() == "a:/b\c");
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9682> 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:15 UTC