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



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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]