https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Now that we have C++11 we could use std::stoi, std::stol, std::stoul etc. ... except that they throw exceptions to report out of range values :-( std::from_chars isn't available until C++17.