Re: [PATCH] libstdc++/ranges: make _RangeAdaptorClosure befriend operator|

2024-11-27 Thread Patrick Palka
ow unnecessary export as well. This is what I ultimately pushed: -- >8 -- Subject: [PATCH] libstdc++/ranges: make _RangeAdaptorClosure befriend operator| This declares the range adaptor pipe operators a friend of the _RangeAdaptorClosure base class so that the std module doesn't need t

Re: [PATCH] libstdc++/ranges: make _RangeAdaptorClosure befriend operator|

2024-11-27 Thread Jonathan Wakely
On Wed, 27 Nov 2024 at 15:43, Patrick Palka wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? OK > > -- >8 -- > > This declares the range adaptor pipe operators a friend of the > _RangeAdaptorClosure base class so that the std module doesn't need to > export them for ADL to

[PATCH] libstdc++/ranges: make _RangeAdaptorClosure befriend operator|

2024-11-27 Thread Patrick Palka
Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- This declares the range adaptor pipe operators a friend of the _RangeAdaptorClosure base class so that the std module doesn't need to export them for ADL to find them. Note that we deliberately don't define these pipe operators