When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
19 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
for embedded environments, you can use std::istringstream maybe?
These can overflow, and work only when dealing with positive values, fix them
id rather not use stringstream, i want to use string_view instead
homie, pass the string_view into the istringstream
ez
its more expensive, no?
also stringstream doesnt do validation?
i need a boolean back
it does perfect validation, check the error flags
no mate, local error flags inside the istringstream
Unfortunately, iostreams is not for performance-intensive work. The problem is not copying things in memory (copying strings is fast), it's virtual function dispatches, potentially to the tune of several indirect function calls per character.
id rather not
its more expensive
oh wait, so you want to parse these numbers with some good performance? manually digiy by digit?
if yes, then fix your loops and integer overflow issues
I fixed it #1332165041637822485