I\'m trying to convert a string to a number. For that, I found the following way:
#include #include template
Try
int b = stringToNumber(a);
Because the template type T can not be deduced from any of the parameters (in this case std::string) you need to explicitly define it.
T
std::string