tolower
tolower
- Subject: tolower
- From: Tim Conkling <email@hidden>
- Date: Wed, 15 Jun 2005 20:35:29 -0400
Another CW->Xcode transition problem:
I have a function:
void MAKELOWERCASE(string s)
{
transform(s.begin(), s.end(), s.begin(), tolower);
}
which produces 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>)'
Changing the body of the function to:
transform(s.begin(), s.end(), s.begin(), ::tolower);
fixes things. Why is this?
Tim
_______________________________________________
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