Код: Выделить всё
transform(theWord.begin(), theWord.end(), theWord.begin(), std::tolower);Код: Выделить всё
transform(theWord.begin(), theWord.end(), theWord.begin(), tolower);но
Код: Выделить всё
transform(theWord.begin(), theWord.end(), theWord.begin(), ::tolower);TheWord — это строка. Я использую пространство имен std;
Почему оно работает с префиксом ::, а не с префиксом std:: или вообще без него?
Подробнее здесь: https://stackoverflow.com/questions/665 ... to-tolower