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

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

 




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. This seems to work:

t = find_if (d.begin(), d.end(), ptr_fun<int, int>(isspace));

jlh

Attachment: signature.asc
Description: OpenPGP digital signature


[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