]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix incomplete rework of wchar_t support in std::format
authorJonathan Wakely <jwakely@redhat.com>
Fri, 18 Aug 2023 08:33:23 +0000 (09:33 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 18 Aug 2023 08:36:38 +0000 (09:36 +0100)
commit7f8d730a563983187edb563c673d184d5bae8cf1
tree94bd9bfd03b5d1bd5aaac331a103040ad5b487d2
parentf5f47cc1ce75b00427756939a2dab94d3d125f6a
libstdc++: Fix incomplete rework of wchar_t support in std::format

r14-3300-g023a62b77f999b left make_wformat_args and some uses of
std::wformat_context unguarded by _GLIBCXX_USE_WCHAR_T.

libstdc++-v3/ChangeLog:

* include/bits/chrono_io.h (operator<<): Use __format_context.
* include/std/format (__format::__format_context): New alias
template.
[!_GLIBCXX_USE_WCHAR_T] (wformat_args, make_wformat_arg):
Disable.
libstdc++-v3/include/bits/chrono_io.h
libstdc++-v3/include/std/format