[PATCH] libstdc++: Export std::ranges::views::indices in std.cc
Jakub Jelinek
jakub@redhat.com
Thu Mar 19 14:20:43 GMT 2026
Hi!
views::indices were added P3060R3 r16-4511, but not exported.
Tested on x86_64-linux, ok for trunk?
2026-03-19 Jakub Jelinek <jakub@redhat.com>
* src/c++23/std.cc.in: Export views::indices.
--- libstdc++-v3/src/c++23/std.cc.in.jj 2026-03-19 14:52:26.683513322 +0100
+++ libstdc++-v3/src/c++23/std.cc.in 2026-03-19 15:00:08.751617173 +0100
@@ -2795,6 +2795,9 @@ export namespace std
using ranges::to_input_view;
namespace views { using views::to_input; }
#endif
+#ifdef __cpp_lib_ranges_indices // C++ >= 26
+ namespace views { using views::indices; }
+#endif
}
#if __glibcxx_ranges_to_container // C++ >= 23
namespace ranges { using ranges::to; }
Jakub
More information about the Libstdc++
mailing list