https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108760

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:0bb1db32ccf54a9de59bea718f7575f7ef22abf5

commit r15-1117-g0bb1db32ccf54a9de59bea718f7575f7ef22abf5
Author: Michael Levine <mlevin...@bloomberg.net>
Date:   Fri Jun 7 09:54:38 2024 +0100

    libstdc++: Fix std::ranges::iota is not included in numeric [PR108760]

    Before this patch, using std::ranges::iota required including
    <algorithm> when it should have been sufficient to only include
    <numeric>.

    libstdc++-v3/ChangeLog:

            PR libstdc++/108760
            * include/bits/ranges_algo.h (ranges::out_value_result):
            Move to <bits/ranges_algobase.h>.
            (ranges::iota_result, ranges::__iota_fn, ranges::iota): Move to
            <numeric>.
            * include/bits/ranges_algobase.h (ranges::out_value_result):
            Move to here.
            * include/std/numeric (ranges::iota_result, ranges::__iota_fn)
            (ranges::iota): Move to here.
            * testsuite/25_algorithms/iota/1.cc: Renamed to ...
            * testsuite/26_numerics/iota/2.cc: ... here.

    Signed-off-by: Michael Levine <mlevin...@bloomberg.net>

Reply via email to