On 14 Ún, 08:22, mthread <rjk...@gmail.comwrote:
Hi,
I would like to know the method to convert integer to string.
Thanx in advance.
#include <string>
#include <sstream>
// Fn should return true if conversion succeeded
template<typename INT>
bool ToInt(const std::string& s, INT& i)
{
std::istringstream iss(s);
s >i;
return !iss.bad();
}