]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Simplify std::regex_traits::value
authorJonathan Wakely <jwakely@redhat.com>
Tue, 28 Oct 2025 12:15:52 +0000 (12:15 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 29 Oct 2025 15:43:36 +0000 (15:43 +0000)
commitc55c1de3a9adb241e3c0dabd7d1edd8ebe9c065f
tree444c8faea5b68a8ad9d2b8ba7bf650d0e87debc7
parent8b0e43d7ec87f53d5bbd0a2d4d876d0aa1327a33
libstdc++: Simplify std::regex_traits::value

We don't need to use an istringstream to convert a hex digit to its
numerical value. And if we don't use istringstream there, we don't need
to include <sstream> in <regex>.

libstdc++-v3/ChangeLog:

* include/bits/regex.tcc (regex_traits::value): Implement
without using istringstream.
* include/std/regex: Do not include <sstream>.

Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com>
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/include/std/regex