PR libstdc++/83891 fix path::is_absolute() for non-POSIX targets
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 May 2018 13:50:49 +0000 (14:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 15 May 2018 13:50:49 +0000 (14:50 +0100)
commitc3b61fdadd7ffc9ef5c613c2df0ff4edf83ad0fc
tree064113a38ea4d5f02cc4158ded5fd248667a7056
parentb0e01682467a22a00530704669d8c253e6dac522
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.

From-SVN: r260259
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/include/experimental/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/query/is_absolute.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/filesystem/path/query/is_relative.cc
libstdc++-v3/testsuite/experimental/filesystem/path/query/is_absolute.cc [new file with mode: 0644]