I have
using namespace std;
vector<char> tmp;
tmp.push_back(val);
...
Now when I try
transform(tmp.begin(), tmp.end(), tmp.begin(), std::tolower);
It fails to compile, but this compiles:
transform(tmp.begin(), tmp.end(), tmp.begin(), ::tolower);
What's the problem with std::tolower
? It works with one argument, e.g., std::tolower(56)
compiles. Thanks!