• 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
Help using transform
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Help using transform
      • From: Ben Phipps <email@hidden>
  • Prev by Date: Re: Building nested frameworks
  • Next by Date: Re: Re: Cmath and math.h Changes in Xcode 2.4
  • Previous by thread: Re: [2.4] Dependency checker confused about a plist resource
  • Next by thread: Re: Help using transform
  • Index(es):
    • Date
    • Thread