Re: [PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-12 Thread Jonathan Wakely
On Thu, 12 Jun 2025 at 09:34, Daniel Krügler wrote: > > Am Do., 12. Juni 2025 um 10:22 Uhr schrieb Jonathan Wakely > : >> >> On Thu, 12 Jun 2025 at 09:21, Jonathan Wakely wrote: >> > >> > On Thu, 12 Jun 2025 at 08:12, Daniel Krügler >> > wrote: >> > > >> > > Am Do., 12. Juni 2025 um 00:10 Uhr

Re: [PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-12 Thread Daniel Krügler
Am Do., 12. Juni 2025 um 10:22 Uhr schrieb Jonathan Wakely < jwak...@redhat.com>: > On Thu, 12 Jun 2025 at 09:21, Jonathan Wakely wrote: > > > > On Thu, 12 Jun 2025 at 08:12, Daniel Krügler > wrote: > > > > > > Am Do., 12. Juni 2025 um 00:10 Uhr schrieb Jonathan Wakely < > jwak...@redhat.com>: >

Re: [PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-12 Thread Jonathan Wakely
On Thu, 12 Jun 2025 at 09:21, Jonathan Wakely wrote: > > On Thu, 12 Jun 2025 at 08:12, Daniel Krügler > wrote: > > > > Am Do., 12. Juni 2025 um 00:10 Uhr schrieb Jonathan Wakely > > : > >> > >> As suggested by Jason, this makes all __normal_iterator operators into > >> friends so they can be fo

Re: [PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-12 Thread Jonathan Wakely
On Thu, 12 Jun 2025 at 08:12, Daniel Krügler wrote: > > Am Do., 12. Juni 2025 um 00:10 Uhr schrieb Jonathan Wakely > : >> >> As suggested by Jason, this makes all __normal_iterator operators into >> friends so they can be found by ADL and don't need to be separately >> exported in module std. >>

Re: [PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-12 Thread Daniel Krügler
Am Do., 12. Juni 2025 um 00:10 Uhr schrieb Jonathan Wakely < jwak...@redhat.com>: > As suggested by Jason, this makes all __normal_iterator operators into > friends so they can be found by ADL and don't need to be separately > exported in module std. > > The operator<=> comparing two iterators of

[PATCH v2] libstdc++: Use hidden friends for __normal_iterator operators

2025-06-11 Thread Jonathan Wakely
As suggested by Jason, this makes all __normal_iterator operators into friends so they can be found by ADL and don't need to be separately exported in module std. The operator<=> comparing two iterators of the same type is removed entirely, instead of being made a hidden friend. That overload was