What if I call the function like this?Quote:
Originally Posted by PredicateNormative
What happens then? In other words, why do you think that the input should be a template parameter and not a std::string? This interface that you posted seems nonsensical to me and would allow someone to call the function with any type. Is that really what you intend?Code:double x(1.5);
std::string lowerCase = StringToLower(x);
