Subject: [Boost-bugs] [Boost C++ Libraries] #5149: Incorrect behavior of basic_path.remove_filename() function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-02 00:47:35
#5149: Incorrect behavior of basic_path.remove_filename() function
----------------------------------------+-----------------------------------
Reporter: lcarreon@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.45.0 | Severity: Problem
Keywords: basic_path remove_filename |
----------------------------------------+-----------------------------------
According to the documentation of basic_path.remove_filename(), the result
should not contain any trailing slashes if the result is not the root
directory. However, this is not what I am observing.
Here is an example of what I have observed. I invoked
current_path<path>() and displayed a partial list of the properties of the
result which are as follows:
string = 'C:/Devel/projects/compiler_tests/test_path'
file_string = 'C:\Devel\projects\compiler_tests\test_path'
directory_string = 'C:\Devel\projects\compiler_tests\test_path'
Afterwards, I invoked remove_filename() on the above and again displayed a
partial list of the properties of the result which are as follows:
string = 'C:/Devel/projects/compiler_tests/'
file_string = 'C:\Devel\projects\compiler_tests\'
directory_string = 'C:\Devel\projects\compiler_tests\'
Am I misunderstanding the documentation because the above is not the
result that I expected. However, if I invoked remove_filename() on the
above and displayed the partial list of the properties of the result, I
get the following:
string = 'C:/Devel/projects/compiler_tests'
file_string = 'C:\Devel\projects\compiler_tests'
directory_string = 'C:\Devel\projects\compiler_tests'
The above is the result I expected from the initial invocation of
remove_filename().
Please clarify. Please note that I am observing the same behavior on
Fedora Linux and Solaris 10 x86.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5149> 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:05 UTC