• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
tolower
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: tolower
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: is there an automated way to beautify code in xcode?
  • Next by Date: Re: Multiple projects - can they share the same project folder?
  • Previous by thread: Re: Split windows
  • Next by thread: Re: tolower
  • Index(es):
    • Date
    • Thread