blob: 4a64e675816fa1e3ed7478b754dddb2b92752ca0 [file] [log] [blame]
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
// { dg-require-filesystem-ts "" }
// PR libstdc++/106201 constraint recursion in path(Source const&) constructor.
#include <filesystem>
#include <ranges>
using I = std::counted_iterator<std::filesystem::directory_iterator>;
static_assert( std::swappable<I> );
using R = std::counted_iterator<std::filesystem::recursive_directory_iterator>;
static_assert( std::swappable<R> );