This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find_if and ptr_fun(isspace<char>) trouble


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]