[PATCH v2 0/3] libstdc++: Reuse bind_back in ranges::_Partial
Tomasz Kaminski
tkaminsk@redhat.com
Thu Sep 4 12:52:11 GMT 2025
On Thu, Sep 4, 2025 at 2:49 PM Jonathan Wakely <jwakely@redhat.com> wrote:
> On Thu, 4 Sept 2025 at 10:04, Tomasz Kamiński <tkaminsk@redhat.com> wrote:
> >
> > v2: Moves change from std::indirect to std::__indirect to first patch,
>
> Ah, invoke ... I was confused what this had to do with std::indirect! :-)
>
I have no idea why indirect was on my mind.,
>
> > so second patch is plain move, without sneaky changes.
> > Patch 3 is not modified.
> >
> > I haven't implemented Nathan suggestions to use enum instead of bool,
> > in my opinion this add miniscule compile time for no user benefit.
> > And we already provide _Bind_front_t and _Bind_back_t aliases that
> > should be used instead of _Binder directly.
>
> I agree that 'bool _Back' is clear enough for an internal API, the
> name `_Back` explains what it's for, without polluting the enclosing
> namespace with the _Front and _Back enumerators.
>
> This doesn't conflict with Nathan's NTTP patches, right?
>
I think it should not at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20250904/0fc83811/attachment.htm>
More information about the Libstdc++
mailing list