diff --git a/libstdc++-v3/include/bits/fs_path.h b/libstdc++-v3/include/bits/fs_path.h index 05db792fbae..c51bfa3095a 100644 --- a/libstdc++-v3/include/bits/fs_path.h +++ b/libstdc++-v3/include/bits/fs_path.h @@ -158,9 +158,16 @@ namespace __detail constexpr bool __is_contiguous = std::contiguous_iterator<_Iter>; #else template - constexpr bool __is_contiguous = is_pointer_v<_Iter>; + constexpr bool __is_contiguous = false; #endif + template + constexpr bool __is_contiguous<_Tp*> = true; + + template + constexpr bool + __is_contiguous<__gnu_cxx::__normal_iterator<_Tp*, _Seq>> = true; + #if !defined _GLIBCXX_FILESYSTEM_IS_WINDOWS && defined _GLIBCXX_USE_CHAR8_T // For POSIX treat char8_t sequences as char without encoding conversions. template