Created attachment 33 [details]
Compiling code that uses Eigen 3.0-beta2 gives me a lot of warnings abound meaningless qualifiers, see attached output of the compiler. I am using the intel compiler icl v22.214.171.124.
Since I am not an expert, I cannot judge if the warnings are indeed correct. I just wanted to let you know that there might be a compatibility issue with the intel compiler, or an issue with the const typename qualifiers.
So... these warnings are bogus, because the types involved here may be reference types, in which case the qualifiers are very meaningful.
There are 2 options here:
1) replace const T by
2) just shut down the bogus warning with some #pragma
I'm leaning in favor of 2) unless other compilers have the same bug. Let's check with LLVM which IIRC had some warnings about useless qualifiers in the past.
I've shut down this warning inside of Eigen code, but that's not enough as this stupid warning is generated when user code instantiates Eigen templates. So I've added a EIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS option allowing you to get rid of it.