[Bug libstdc++/104166] Implement C++20 std::format

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 13 01:14:20 GMT 2022


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

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

https://gcc.gnu.org/g:1d9454aba615eadd0d85c93713dd848227345f67

commit r13-3936-g1d9454aba615eadd0d85c93713dd848227345f67
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue Oct 18 21:20:06 2022 +0100

    libstdc++: Implement C++20 <format> [PR104166]

    This doesn't add the newer C++23 features like formatting ranges
    and escaped string prsentation types.

    However, C++23 extended floating-point types are supported, as are
    128-bit integers.

    It could do with more tests.

    libstdc++-v3/ChangeLog:

            PR libstdc++/104166
            * include/Makefile.am (std_headers): Add <format>.
            * include/Makefile.in: Regenerate.
            * include/precompiled/stdc++.h: Add <format>.
            * include/std/format: New file.
            * python/libstdcxx/v6/printers.py (StdFormatArgsPrinter): New
            printer for std::format_args.
            * testsuite/std/format/arguments/args.cc: New test.
            * testsuite/std/format/error.cc: New test.
            * testsuite/std/format/formatter.cc: New test.
            * testsuite/std/format/functions/format.cc: New test.
            * testsuite/std/format/functions/format_to_n.cc: New test.
            * testsuite/std/format/functions/size.cc: New test.
            * testsuite/std/format/functions/vformat_to.cc: New test.
            * testsuite/std/format/parse_ctx.cc: New test.
            * testsuite/std/format/string.cc: New test.
            * testsuite/std/format/string_neg.cc: New test.


More information about the Gcc-bugs mailing list