aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-22 17:39:43 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-22 17:45:46 +0000
commitdfc1ea414e0cebccfcffc771ebcefa3d24c9754c (patch)
tree4f4c71e5bc3a9a76616a0c545f549998fc961186 /libcpp
parent6b859736bb1e707778627b2e58ef6088e475a54c (diff)
downloadgcc-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