Help using transform
Help using transform
- Subject: Help using transform
- From: Ben Phipps <email@hidden>
- Date: Tue, 29 Aug 2006 15:54:38 -0700
I probably don't understand how to use the function correctly, but I'm trying to compile the following code:
std::basic_string<char> strUsername = "Username"; transform (strUsername.begin(), strUsername.end(), strUsername.begin(), ctype<char>::tolower);
but, gcc Gives me the following error:
error: no matching function for call to 'transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unknown type>)'
It looks like it can't find the unary operator tolower(). Anyone have any suggestions? |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden