I am trying to convert from a string to a uint64_t integer. stoi
returns a 32 bit integer, so it won't work in my case. Are there other solutions?
Try std::stoull
if you are using C++11 or greater.
This post may also be of help. I didnt mark this as a duplicate because the other question is about C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With