top | item 41837067

(no title)

khwrht | 1 year 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.

discuss

order

otabdeveloper4|1 year ago

from_chars is the correct API here. When you're parsing decimal numbers you want to do it with streaming semantics.

mort96|1 year ago

Hm but there's nothing streaming about it? You need the entire numeric string in memory