Change reference to const reference in stringToNum
The parameter in stringToNum()
should be changed to const std::string&
, as the function does not (and should not) modify the original object.
The parameter in stringToNum()
should be changed to const std::string&
, as the function does not (and should not) modify the original object.