Registered Member
|
Hi all,
I have tested to use EIGEN_STATIC_ASSERT to check matrices at compile time, and I get the expected behavior, but a warning as well that I do not expect to get. If I have the code:
I get the warning:
This stems from the enums being of different type so a simple cast should fix it. But this feel wrong, as comparing the size of matrices should be ok. Am I missing some practice when comparing the size of matrices at compile time? Thanks for your time! |
Moderator
|
Convert them to int:
|
Registered Member
|
Thank you ggael! So a cast is needed, not me using Eigen wrongly so far.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]