]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing parts of LWG 3480 for directory iterators [PR117560]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 14 Nov 2024 01:14:44 +0000 (01:14 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 14 Nov 2024 12:27:39 +0000 (12:27 +0000)
commiteec6e8923586b9a54e37f32cef112d26d86e8f01
treef4227d52cd21c529443cc9a42f71a73a8ec3dadc
parent9ede072ffafcde27d0e9fe76bb7ffacb4f48a2d6
libstdc++: Add missing parts of LWG 3480 for directory iterators [PR117560]

It looks like I only read half the resolution of LWG 3480 and decided we
already supported it. As well as making the non-member overloads of end
take their parameters by value, we need some specializations of the
enable_borrowed_range and enable_view variable templates.

libstdc++-v3/ChangeLog:

PR libstdc++/117560
* include/bits/fs_dir.h (enable_borrowed_range, enable_view):
Define specializations for directory iterators, as per LWG 3480.
* testsuite/27_io/filesystem/iterators/lwg3480.cc: New test.
libstdc++-v3/include/bits/fs_dir.h
libstdc++-v3/testsuite/27_io/filesystem/iterators/lwg3480.cc [new file with mode: 0644]