[PATCH v2 0/3] libstdc++: Reuse bind_back in ranges::_Partial
Jonathan Wakely
jwakely@redhat.com
Thu Sep 4 12:49:26 GMT 2025
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! :-)
> 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?
More information about the Libstdc++
mailing list