I have a large integer stored as a string. I need to convert it into an integer (uint64_t
). I tried stoi()
, but it is crashing after throwing an instance of std::out_of_range
.
The string has maximum of 64-bit integer value, max value of 18,446,744,073,709,551,615 (maximum for an unsigned long int).
How do I do this, other than (of course) manually?