Re: [PATCH] libstdc++: Implement ranges::enumerate_view from P2164R9

2023-04-12 Thread Patrick Palka via Gcc-patches
On Tue, Apr 11, 2023 at 11:12 AM Jonathan Wakely wrote: > > On Tue, 11 Apr 2023 at 15:59, Patrick Palka via Libstdc++ > wrote: > > > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk perhaps? > > Yes, this is only for C++23 so OK for trunk now. Yay thanks, pushed as

Re: [PATCH] libstdc++: Implement ranges::enumerate_view from P2164R9

2023-04-11 Thread Jonathan Wakely via Gcc-patches
On Tue, 11 Apr 2023 at 15:59, Patrick Palka via Libstdc++ wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk perhaps? Yes, this is only for C++23 so OK for trunk now. The auto(x) uses mean this won't work with older versions of Clang, but that's OK. I already introduced that

[PATCH] libstdc++: Implement ranges::enumerate_view from P2164R9

2023-04-11 Thread Patrick Palka via Gcc-patches
Tested on x86_64-pc-linux-gnu, does this look OK for trunk perhaps? libstdc++-v3/ChangeLog: * include/std/ranges (__cpp_lib_ranges_enumerate): Define for C++23. (__detail::__range_with_movable_reference): Likewise. (enumerate_view): Likewise.