Re: Help using transform
Re: Help using transform
- Subject: Re: Help using transform
- From: Ben Phipps <email@hidden>
- Date: Tue, 29 Aug 2006 16:49:34 -0700
Nevermind, Programmer error...
On Aug 29, 2006, at 3:54 PM, Ben Phipps wrote: 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