Y
Hacker News
new
|
ask
|
show
|
jobs
by
khwrht
618 days ago
That is a good question. The C++ stdlib has some truly bizarre APIs. I wonder if they should freeze std and work on std2.
1 comments
otabdeveloper4
618 days ago
from_chars is the correct API here. When you're parsing decimal numbers you want to do it with streaming semantics.
link
mort96
618 days ago
Hm but there's nothing streaming about it? You need the entire numeric string in memory
link
Leherenn
618 days ago
I think they meant the other way around: you can have a single string in memory containing multiple numbers, and process that string as a stream.
link