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

--- Comment #4 from CVS 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:9cd4eeefcc641dd70d026e08e9d218101b826c52

commit r10-6676-g9cd4eeefcc641dd70d026e08e9d218101b826c52
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Feb 17 15:25:33 2020 +0000

    libstdc++: Reduce header dependencies for C++20 (PR 92546)

    In C++20 <memory> depends on <bits/ranges_unitialized.h> which
    depends on <bits/random.h> just for a single concept. Including
    <bits/random.h> also requires including <cmath>, which is huge due to
    the C++17 special functions.

    This change moves the concept to the <bits/uniform_int_dist.h> internal
    header that exists so that <bits/stl_algobase.h> doesn't need to include
    <bits/random.h>.

        PR libstdc++/92546 (partial)
        * include/bits/random.h (uniform_random_bit_generator): Move definition
        to <bits/uniform_int_dist.h>.
        * include/bits/ranges_algo.h: Include <bits/uniform_int_dist.h> instead
        of <bits/random.h>.
        * include/bits/ranges_algobase.h: Do not include <cmath>.
        * include/bits/uniform_int_dist.h (uniform_random_bit_generator):
        Move here.
        * include/std/ranges: Do not include <limits>.
        * testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error lineno.

Reply via email to