This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: find_if and ptr_fun(isspace<char>) trouble
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: jlh <jlh at gmx dot ch>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 19 Dec 2004 16:36:54 +0100
- Subject: Re: find_if and ptr_fun(isspace<char>) trouble
- Organization: Integrable Solutions
- References: <41C3ED85.5080900@kegel.com> <41C42B1D.6060209@gmx.ch>
jlh <jlh@gmx.ch> writes:
| Dan Kegel wrote:
| > find_if (d.begin(), d.end(), ptr_fun(isspace<char>));
|
| AFAIK, isspace isn't a template, so that code doesn't make sense to me.
There *is* a function template "isspace" defined in <locale>, it
requires two arguments (as opposed to the C-language isspace defined
in <cctype>); but the code is wrong.
-- Gaby