diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-22 17:39:43 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-22 17:45:46 +0000 |
commit | dfc1ea414e0cebccfcffc771ebcefa3d24c9754c (patch) | |
tree | 4f4c71e5bc3a9a76616a0c545f549998fc961186 /libcpp | |
parent | 6b859736bb1e707778627b2e58ef6088e475a54c (diff) | |
download | gcc-dfc1ea414e0cebccfcffc771ebcefa3d24c9754c.zip gcc-dfc1ea414e0cebccfcffc771ebcefa3d24c9754c.tar.gz gcc-dfc1ea414e0cebccfcffc771ebcefa3d24c9754c.tar.bz2 |
libstdc++: Replace std::isdigit and std::isxdigit in <format> [PR107817]
These functions aren't usable in constant expressions. Provide our own
implementations, based on __from_chars_alnum_to_val from <charconv>.
libstdc++-v3/ChangeLog:
PR libstdc++/107817
* include/std/charconv (__from_chars_alnum_to_val): Add
constexpr for C++20.
* include/std/format (__is_digit, __is_xdigit): New functions.
(_Spec::_S_parse_width_or_precision): Use __is_digit.
(__formatter_fp::parse): Use __is_xdigit.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions