Quote Originally Posted by laserlight View Post
You can test with the online Comeau compiler.
Thanks for the link. I tried both with and without "::" and they both worked.
Quote Originally Posted by laserlight View Post
However, as I implied, there is no guarantee that the non-template version of tolower will be available in the global namespace (unless you #include <ctype.h> instead). A really portable solution is to write a wrapper, e.g.,
Code:
inline char charToLower(char c)
{
    return std::tolower(c);
}

// ...
transform(str.begin(), str.end(), str.begin(), charToLower);
Yeah, this one is much better. By the way, I tried also with and without "inline" and they both worked. Do I really need that "inline"?

Thanks,

D.