bool gotInteger(const string& str, int& i)
{
istringstream ss(str);
return ss >> i ? true : false ;
}
The error:
../a.cpp: In function 'bool gotInteger(const std::string&, int&)':
../a.cpp:175: error: variable 'std::istringstream ss' has initializer but incomplete type.
I have no idea what that means and it doesn't suggest the type I need to use, I tried adding .c_str() to str on line 175 but that didn't help.