]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
libstdc++: Add comparison operators to std::filesystem types
authorJonathan Wakely <jwakely@redhat.com>
Wed, 15 Apr 2020 20:01:42 +0000 (21:01 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 15 Apr 2020 20:01:42 +0000 (21:01 +0100)
commitd43919bf887530dfcbf85a76d60f1a698641731d
treefd0682814c8b6fd473f42e16c538703b11b0686e
parenteef00439e6723e089e74cd374474e0eac0a9f513
libstdc++: Add comparison operators to std::filesystem types

Some more C++20 changes from P1614R2, "The Mothership has Landed".

* include/bits/fs_dir.h (file_status): Define operator== for C++20.
(directory_entry): Define operator<=> and remove redundant comparison
operators for C++20.
* include/bits/fs_fwd.h (space_info): Define operator== for C++20.
* include/bits/fs_path.h (path): Define operator<=> and remove
redundant comparison operators for C++20.
* testsuite/27_io/filesystem/path/compare/compare.cc: Fix comment.
* testsuite/27_io/filesystem/path/compare/lwg2936.cc: Likewise.
* testsuite/27_io/filesystem/path/compare/path.cc: Likewise.
* testsuite/27_io/filesystem/path/compare/strings.cc: Likewise.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fs_dir.h
libstdc++-v3/include/bits/fs_fwd.h
libstdc++-v3/include/bits/fs_path.h
libstdc++-v3/testsuite/27_io/filesystem/path/compare/compare.cc
libstdc++-v3/testsuite/27_io/filesystem/path/compare/lwg2936.cc
libstdc++-v3/testsuite/27_io/filesystem/path/compare/path.cc
libstdc++-v3/testsuite/27_io/filesystem/path/compare/strings.cc
libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/cmp.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc [new file with mode: 0644]