Subject: [Boost-bugs] [Boost C++ Libraries] #4611: path::operator / does not remove redundant separators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-29 15:55:47
#4611: path::operator / does not remove redundant separators
-----------------------------------+----------------------------------------
Reporter: neo_in_matrix@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.44.0 | Severity: Optimization
Keywords: |
-----------------------------------+----------------------------------------
The following code produces path3 as \abc\\def\, which is not expected.
{{{
filesystem::path path1("\\abc\\");
filesystem::path path2("\\def\\");
filesystem::path path3 = path1 / path2;
}}}
Though the OS level API can handle duplicate path seps correctly, but it
is not considered good practice to return path strings like this.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4611> 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:04 UTC