[PATCH] libstdc++: Adding missing feature-test macros for C++23 ranges algos
Jakub Jelinek
jakub@redhat.com
Tue Apr 18 08:59:12 GMT 2023
On Tue, Apr 18, 2023 at 09:56:33AM +0100, Jonathan Wakely wrote:
> On Mon, 17 Apr 2023 at 04:46, Patrick Palka via Libstdc++
> <libstdc++@gcc.gnu.org> wrote:
> >
> > This patch also renames __cpp_lib_fold to __cpp_lib_ranges_fold
> > as per the current draft standard.
>
> OK, but this needs RM approval to push to gcc-13
Ok, if you can commit it today.
> > libstdc++-v3/ChangeLog:
> >
> > * include/bits/ranges_algo.h (__cpp_lib_ranges_contains):
> > Define for C++23.
> > (__cpp_lib_ranges_iota): Likewise.
> > (__cpp_lib_ranges_find_last): Likewise.
> > (__cpp_lib_fold): Rename to ...
> > (__cpp_lib_ranges_fold): ... this.
> > * include/std/version: As above.
> > * testsuite/25_algorithms/fold_left/1.cc: Adjust after
> > renaming __cpp_lib_fold.
> > * testsuite/std/ranges/version_c++23.cc: Verify values
> > of the above feature-test macros.
Jakub
More information about the Libstdc++
mailing list