problem with stds::transform

This is a discussion on problem with stds::transform within the C++ Programming forums, part of the General Programming Boards category; Hello all, I have the following line in my code: std::transform(CheckString.begin(), CheckString.end(), CheckString.begin(), char_toupper); // make path all caps And ...

  1. #1
    Unregistered
    Guest

    problem with stds::transform

    Hello all, I have the following line in my code:

    std::transform(CheckString.begin(), CheckString.end(), CheckString.begin(), char_toupper); // make path all caps

    And Borland gives me this error:
    Error E2285 checkowner.cpp 52: Could not find a match for 'std::transform<InputIterator,OutputIterator,Unary Operation>(char *,char *,char *,undefined)' in function checkRights(string)

    It seems to be somehow "missing" one of the parameters I pass it!

  2. #2
    Registered User matheo917's Avatar
    Join Date
    Sep 2001
    Posts
    279
    i can't see too much from this but it seams like char_toupper was declared prior but was not initialized ....(defined) or you haven't assigned any value to it...

    hmm.....

    i guess more code is needed.....mistake is probably in declaration or definition somewhere prior.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21