On 30 June 2015 at 23:58, <papa@xxxxxxxxxxx> wrote: > I would like to write a function to capitalize letters, say... > std::wstring toUpper(const std::wstring wstr){ > for ( auto it = wstr.begin(); it != wstr.end(); ++it){ > global_wapstr.append(std::towupper(&it)); > > } > } > > This doesn’t work, but doesn’t the standard already have something like > std::wstring::toUpper(...)? This is not a question about using GCC, it's about general C++ programming, so is inappropriate for the gcc-help list. See https://gcc.gnu.org/onlinedocs/libstdc++/manual/strings.html#std.strings.string for some more information on the points Martin made.