Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7686

Re: not match function for call to transform

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: not match function for call to transform
Date Sun, 10 Jul 2011 10:55:17 +1200
Lines 24
Message-ID <97s4k7F6tmU4@mid.individual.net> (permalink)
References <61a46c4b-2b8b-4147-92ab-b41828e14220@y13g2000prb.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Trace individual.net a8XGydx1z36X/lbM1vrJIgmLgsZewo0ZQG4BKUielptHgL8RKu
Cancel-Lock sha1:ZZqJvNiC6Sf+6IH09QUeMKJFNHE=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <61a46c4b-2b8b-4147-92ab-b41828e14220@y13g2000prb.googlegroups.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:7686

Show key headers only | View raw


On 07/10/11 09:52 AM, eric wrote:
> Dear advanced c++ programers:
>
>    I tried 4.14 Doing a Case-Insensitive String Search from book C++
> cookbook on page 173, example 4-22
> on my g++ 4.5.2 system
> but I got compile error
> ----------------------------------
> eric@eric-laptop:~/cppcookbook/ch4$ g++ Example4-22.cpp
> Example4-22.cpp: In function ‘std::basic_string<char>::const_iterator
> caseInsFind(std::string&, const std::string&)’:
> Example4-22.cpp:19:20: error: no matching function for call to
> ‘transform(std::basic_string<char>::const_iterator,
> std::basic_string<char>::const_iterator,
> std::back_insert_iterator<std::basic_string<char>  >,<unresolved
> overloaded function type>)’
> -------------------------------------
> example source code can get from here
> http://examples.oreilly.com/9780596007614/

g++ is picking the wrong toupper, try ::toupper.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

not match function for call to transform eric <cneric12lin0@gmail.com> - 2011-07-09 14:52 -0700
  Re: not match function for call to transform Ian Collins <ian-news@hotmail.com> - 2011-07-10 10:55 +1200

csiph-web