Is the an easier way, i get errors here
Code:bool valid::validFloat(const std::string& value)
{
float f;
std::istringstream strin(value); /* error C2440: 'initializing' : cannot convert from 'std::string' to 'int' */
strin >> f;
if (!strin)
return false;
else
return true;
}