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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



jlh <jlh@xxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux