Hello,
Do you guys know why this does not compile?
<code>
std::for_each(v.begin(), v.end(), &boost::algorithm::to_lower<string>);
</code>
v is a vector of strings that I want to convert to lowercase.
However, if I have another function
and do like the following it works..Code:static void toLowerCase(string &s) { boost::algorithm::to_lower<string>(s); }
compiler is g++Code:std::for_each(v.begin(), v.end(), toLowerCase);
Thanks in advance
-Prashant




Reply With Quote