Re: error: a template argument may not reference a local type

Hi Petr,

I think the problem is caused by the two versions of getNodes(). There is a template and non-template one. It seems that the icc compiler prefers the template version and g++ prefers the non-template one. I think a simple cast of the last argument would remedy the situation:

return getNodes (count, availability, freshNodes, static_cast (predicateImp));

This should make the compiler choose the non-template version of getNodes() and the warning should go away! Please let me know if that worked.

Btw. I’m on my way to fix all warning (except the ones in BitTorrent which you have probably fixed already) and I’ll write a post once I’ve done that! The filtering script works like a charm for me :-) !

Regards,

Peter

Would you like to post a relpy?


This post is a reply to:
error: a template argument may not reference a local type
Hi Peter, I've been trying to compile calitko,140 using the Intel compiler (icc/icpc), but I end on this error: Gnutella/Bootstrapping/NodeCache.h(108): error: a template argument may not reference a local type (more...)

Follow-ups:
Re: error: a template argument may not reference a local type
Hi Peter, I think the problem is caused by the two versions of getNodes(). There is a template and non-template one. It seems that the icc compiler prefers the template version (more...)