Closed tzlaine closed 6 months ago
I'm less hot on this idea after looking at from_chars
:
std::from_chars_result
from_chars( const char* first, const char* last,
/* integer-type */& value, int base = 10 );
So for this to work, the parse input would need to be a common_range
. Additionally, it would need to be char
s, or a transcoding range that has char
s at bottom.
Also, it would only have the same behavior when MinDigits
and/or MaxDigits
are not in use.
Ok, I guess it's not that limiting. I guess most input will be in char
s, transcoded or not.
This could be
std::
orboost::charconv::
, whichever is available.