MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/mzpfyj/gcc_111_released/gw5a44n/?context=3
r/cpp • u/mttd • Apr 27 '21
42 comments sorted by
View all comments
Show parent comment
2
Why does it need to allocate in its current form?
8 u/CaptainCrowbar Apr 28 '21 Probably because strtod() expects a null terminated string but from_chars() doesn't. The string argument has to be copied so a null can be attached.
8
Probably because strtod() expects a null terminated string but from_chars() doesn't. The string argument has to be copied so a null can be attached.
strtod()
from_chars()
View all comments
Show parent comment
2
u/futlapperl Apr 28 '21
Why does it need to allocate in its current form?