Alipha wrote:
Daniel Aarno wrote: As far as I can tell the locale header should provide a tolower function
however the following failes for me under gcc 3.4.
transform(begin, end, begin2, std::tolower);
with an error that the last arg is of unknown type. Any ideas on why?
std::tolower is templated. provide its templated argument(s).
excuse me for the double post, but also, std::tolower takes two
arguments, and so you'll have to use std::bind2nd or something, also.
or use the <ctype> std::tolower function.