27th July 2022, 1 min read Comparing strtod with from_chars (GCC 12) 2 thoughts on “Comparing strtod with from_chars (GCC 12)” Anupam Kapoor says: August 22, 2022 at 2:54 pm have a trivial question: if the entire range needs to be parsed, shouldn’t the check be ‘p != st.data() + st.size()’ for an error condition ? thereby ensuring that all characters in the range were used ? Daniel Lemire says: September 9, 2022 at 7:57 pm If the entire string is matched, it does not mean that there was an error.
have a trivial question: if the entire range needs to be parsed, shouldn’t the check be ‘p != st.data() + st.size()’ for an error condition ? thereby ensuring that all characters in the range were used ?
If the entire string is matched, it does not mean that there was an error.