Re: [PATCH] libstdc++: Simplify ranges::to closure objects

2023-12-04 Thread Jonathan Wakely
On Thu, 30 Nov 2023 at 19:23, Patrick Palka wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? OK, thanks for simplifying it. > > -- >8 -- > > Use the existing _Partial range adaptor closure object in the > definition of ranges::to instead of essentially open coding it. > > li

[PATCH] libstdc++: Simplify ranges::to closure objects

2023-11-30 Thread Patrick Palka
Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- Use the existing _Partial range adaptor closure object in the definition of ranges::to instead of essentially open coding it. libstdc++-v3/ChangeLog: * include/std/ranges (__detail::_ToClosure): Replace with ...