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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Myers <n...@gcc.gnu.org>:

https://gcc.gnu.org/g:9930876ed788a7da18ccef0c91f4f12749da1df7

commit r16-1973-g9930876ed788a7da18ccef0c91f4f12749da1df7
Author: Nathan Myers <n...@cantrip.org>
Date:   Mon Jun 30 18:55:48 2025 -0400

    libstdc++: construct bitset from string_view (P2697) [PR119742]

    Add a bitset constructor from string_view, per P2697. Fix existing
    tests that would fail to detect incorrect exception behavior.

    Argument checks that result in exceptions guarded by "#if HOSTED"
    are made unguarded because the functions called to throw just call
    terminate() in free-standing builds. Improve readability in Doxygen
    comments. Generalize a private member argument-checking function
    to work with string and string_view without mentioning either,
    obviating need for guards.

    The version.h symbol is not "hosted" because string_view, though
    not specified to be available in free-standing builds, is defined
    there and the feature is useful there.

    libstdc++-v3/ChangeLog:
            PR libstdc++/119742
            * include/bits/version.def: Add preprocessor symbol.
            * include/bits/version.h: Add preprocessor symbol.
            * include/std/bitset: Add constructor.
            * testsuite/20_util/bitset/cons/1.cc: Fix.
            * testsuite/20_util/bitset/cons/6282.cc: Fix.
            * testsuite/20_util/bitset/cons/string_view.cc: Test new ctor.
            * testsuite/20_util/bitset/cons/string_view_wide.cc: Test new ctor.

Reply via email to