[Bug libstdc++/83891] std::filesystem::path::is_absolute for Windows
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 15 13:51:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83891
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue May 15 13:50:49 2018
New Revision: 260259
URL: https://gcc.gnu.org/viewcvs?rev=260259&root=gcc&view=rev
Log:
PR libstdc++/83891 fix path::is_absolute() for non-POSIX targets
The correct definition seems to be has_root_directory() for all systems
we care about.
PR libstdc++/83891
* include/bits/fs_path.h (path::is_absolute()): Use same definition
for all operating systems.
* include/experimental/bits/fs_path.h (path::is_absolute()): Likewise.
* testsuite/27_io/filesystem/path/query/is_absolute.cc: New.
* testsuite/27_io/filesystem/path/query/is_relative.cc: Fix comment.
* testsuite/experimental/filesystem/path/query/is_absolute.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_absolute.cc
trunk/libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/fs_path.h
trunk/libstdc++-v3/include/experimental/bits/fs_path.h
trunk/libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
More information about the Gcc-bugs
mailing list