Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
khwrht's comments
login
khwrht
16 hours ago
|
parent
|
context
[–]
| on:
C++ String Conversion: Exploring std:from_chars in...
That is a good question. The C++ stdlib has some truly bizarre APIs. I wonder if they should freeze std and work on std2.
reply
otabdeveloper4
14 hours ago
|
parent
[–]
from_chars is the correct API here. When you're parsing decimal numbers you want to do it with streaming semantics.
reply
mort96
13 hours ago
|
root
|
parent
[–]
Hm but there's nothing streaming about it? You need the entire numeric string in memory
reply
Leherenn
8 hours ago
|
root
|
parent
[–]
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.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
reply