1 // { dg-do compile { target c++20 } }
2 // { dg-require-filesystem-ts "" }
4 // PR libstdc++/106201 constraint recursion in path(Source const&) constructor.
6 #include <experimental/filesystem>
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
> );