[PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-13 Thread Patrick Palka
Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- libstdc++-v3/ChangeLog: * include/bits/version.def (ranges_to_input): Define. * include/bits/version.h: Regenerate. * include/std/ranges (ranges::to_input_view): Define for C++26. (views::__detai

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Jonathan Wakely
On 11/03/25 12:54 -0400, Patrick Palka wrote: Hmm good point -- while the to_input_view iterator is always move-only, it's not always single pass, the latter property is inherited from the underlying range. Here's an updated patch that uses std::same_as in the testcase, and slightly extends the

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Tomasz Kaminski
On Tue, Mar 11, 2025 at 5:54 PM Patrick Palka wrote: > On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > > > > > On Tue, Mar 11, 2025 at 5:04 PM Patrick Palka wrote: > > On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > > > > > > > > > On Mon, Mar 10, 2025 at 11:28 PM Pat

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Patrick Palka
On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > On Tue, Mar 11, 2025 at 5:04 PM Patrick Palka wrote: > On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > > > > > On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka > wrote: > >       Tested on x86_64-pc-linux-gnu, do

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Patrick Palka
On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka wrote: > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > -- >8 -- > > libstdc++-v3/ChangeLog: > >         * include/bits/version.def (ranges_to_input): Def

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Tomasz Kaminski
On Tue, Mar 11, 2025 at 5:04 PM Patrick Palka wrote: > On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > > > > > On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka > wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > > > -- >8 -- > > > > libstdc++-v3/ChangeL

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Patrick Palka
On Tue, 11 Mar 2025, Tomasz Kaminski wrote: > > > On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka wrote: > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > -- >8 -- > > libstdc++-v3/ChangeLog: > >         * include/bits/version.def (ranges_to_input): Def

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Tomasz Kaminski
On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka wrote: > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > -- >8 -- > > libstdc++-v3/ChangeLog: > > * include/bits/version.def (ranges_to_input): Define. > * include/bits/version.h: Regenerate. > * include/std/ra

Re: [PATCH] libstdc++: Implement P3137R3 views::to_input for C++26

2025-03-11 Thread Tomasz Kaminski
On Mon, Mar 10, 2025 at 11:28 PM Patrick Palka wrote: > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > -- >8 -- > > libstdc++-v3/ChangeLog: > > * include/bits/version.def (ranges_to_input): Define. > * include/bits/version.h: Regenerate. > * include/std/ra