aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-18 11:28:32 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-18 11:56:57 +0100
commit6fabf8f25772bf7a7ff68a31a315cd91b86a186e (patch)
tree33bf6793b352ada442a171e3c9e0a221883faf34 /gcc
parent8353b9c5f5af0e65cb04fcbb7325d6a566006cd4 (diff)
downloadgcc-6fabf8f25772bf7a7ff68a31a315cd91b86a186e.zip
gcc-6fabf8f25772bf7a7ff68a31a315cd91b86a186e.tar.gz
gcc-6fabf8f25772bf7a7ff68a31a315cd91b86a186e.tar.bz2
libstdc++: Replace non-type-dependent uses of wchar_t in <format> and <chrono>
This is one more piece of the rework to make wchar_t support in std::format depend on _GLIBCXX_USE_WCHAR_T. In <format> the __to_wstring_numeric function is called with arguments that aren't type-dependent, so a declaration needs to be available, or the calls need to be guarded by _GLIBCXX_USE_WCHAR_T. In <chrono> there is a similarly non-type-dependent call to std::format with a wchar_t format string, which is ill-formed when the wchar_t overloads of std::format are not declared. Use _GLIBCXX_WIDEN to make it type-dependent. libstdc++-v3/ChangeLog: * include/bits/chrono_io.h (operator<<): Make uses of wide strings with streams and std::format type-dependent on _CharT. * include/std/format [!_GLIBCXX_USE_WCHAR_T] Do not use __to_wstring_numeric.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions