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 and g++ prefers the non-template one. I think a simple cast of the last argument would remedy the situation:
[snip]

Yes, that worked. I’ve fixed it in my calitko branch, rev142. However, I thought that if a compiler have to decide whether to use a template or a non-template function, it must choose the non-template one… That is why I was surprised when I found this error on the Intel compiler. But maybe I’m just missing something.

I have also done some updates in the rev 141, most of them are related to the ICC compiler, so you can merge these changes to the main branch, too (compilation went OK with this version on both compilers - g++ and ICC). I’ll soon write a post about extra compilation warnings produced by the Intel compiler (with attached logs), so we can discuss them and update the (new) linnux-icc.txt ignore list (and also wiki pages).

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 :-) !

Great!

Have a nice day,

Petr

Would you like to post a relpy?


This post is a reply to:
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 (more...)

No follow-ups yet.