path::root_directory()
description is confusingSection: 31.12.6.5.9 [fs.path.decompose] Status: C++17 Submitter: Jonathan Wakely Opened: 2014-07-03 Last modified: 2017-07-30
Priority: 0
View all other issues in [fs.path.decompose].
View all issues with C++17 status.
Discussion:
31.12.6.5.9 [fs.path.decompose] p5 says:
If root-directory is composed of slash name, slash is excluded from the returned string.
but the grammar says that root-directory is just slash so that makes no sense.
[Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS]
Proposed resolution:
Change 31.12.6.5.9 [fs.path.decompose] as indicated:
path root_directory() const;Returns: root-directory, if
pathname
includes root-directory, otherwisepath()
.
If root-directory is composed of slash name, slash is excluded from the returned string.