Debian Codegraph @

libstdc++-v3/testsuite/27_io/filesystem/iterators/106201.cc

raw
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 <filesystem>
7 #include <iterator>
8 #include <concepts>
9 namespace fs = std::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> );