SyntaxFix
Write A Post
Hire A Developer
Questions
Behind the scenes, lexical_cast does this:
std::stringstream str; str << myint; std::string result; str >> result;
If you don't want to "drag in" boost for this, then using the above is a good solution.