]>
Commit | Line | Data |
---|---|---|
38922514 JW |
1 | // { dg-do compile { target c++20 } } |
2 | // { dg-require-filesystem-ts "" } | |
3 | ||
4 | // PR libstdc++/106201 constraint recursion in path(Source const&) constructor. | |
5 | ||
6 | #include <experimental/filesystem> | |
7 | #include <iterator> | |
8 | #include <concepts> | |
9 | namespace fs = std::experimental::filesystem; | |
10 | using I = std::counted_iterator<fs::directory_iterator>; | |
11 | static_assert( std::swappable<I> ); | |
12 | using R = std::counted_iterator<fs::recursive_directory_iterator>; | |
13 | static_assert( std::swappable<R> ); |