https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123147
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think it should just be using basic_stringstream<char>:
--- a/libstdc++-v3/include/bits/chrono_io.h
+++ b/libstdc++-v3/include/bits/chrono_io.h
@@ -4976,14 +4976,14 @@ namespace __detail
}
else // Read fractional seconds
{
- basic_stringstream<_CharT> __buf;
+ stringstream __buf;
auto __digit = _S_try_read_digit(__is, __err);
if (__digit != -1)
{
- __buf.put(_CharT('0') + __digit);
+ __buf.put('0' + __digit);
__digit = _S_try_read_digit(__is, __err);
if (__digit != -1)
- __buf.put(_CharT('0') + __digit);
+ __buf.put('0' + __digit);
}
auto __i = __is.peek();
@@ -5008,7 +5008,7 @@ namespace __detail
{
__digit = _S_try_read_digit(__is, __err);
if (__digit != -1)
- __buf.put(_CharT('0') + __digit);
+ __buf.put('0' + __digit);
else
break;
}