How can I transfer uint64_t value to std::string? I need to construct the std::string containing this value For example something like this:
void genString(uint6
use either boost::lexical_cast or std::ostringstream
boost::lexical_cast
std::ostringstream
e.g.:
str += boost::lexical_cast(val);
or
std::ostringstream o; o << val; str += o.str();