-
- Downloads
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.
Showing
- libstdc++-v3/ChangeLog 11 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/fs_dir.h 19 additions, 4 deletionslibstdc++-v3/include/bits/fs_dir.h
- libstdc++-v3/include/bits/fs_fwd.h 4 additions, 0 deletionslibstdc++-v3/include/bits/fs_fwd.h
- libstdc++-v3/include/bits/fs_path.h 19 additions, 8 deletionslibstdc++-v3/include/bits/fs_path.h
- libstdc++-v3/testsuite/27_io/filesystem/path/compare/compare.cc 1 addition, 1 deletion...c++-v3/testsuite/27_io/filesystem/path/compare/compare.cc
- libstdc++-v3/testsuite/27_io/filesystem/path/compare/lwg2936.cc 1 addition, 1 deletion...c++-v3/testsuite/27_io/filesystem/path/compare/lwg2936.cc
- libstdc++-v3/testsuite/27_io/filesystem/path/compare/path.cc 1 addition, 1 deletionlibstdc++-v3/testsuite/27_io/filesystem/path/compare/path.cc
- libstdc++-v3/testsuite/27_io/filesystem/path/compare/strings.cc 1 addition, 1 deletion...c++-v3/testsuite/27_io/filesystem/path/compare/strings.cc
- libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/cmp.cc 79 additions, 0 deletions...tdc++-v3/testsuite/27_io/filesystem/path/nonmember/cmp.cc
- libstdc++-v3/testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc 80 additions, 0 deletions...v3/testsuite/27_io/filesystem/path/nonmember/cmp_c++20.cc
Loading
Please register or sign in to comment