Registered Member
|
Hi,
I am suddenly receiving errors in VS2013 on this particular header file, the errors are listed below. I am unsure if this is a bug but I cannot see anything in my code that would trigger these errors in Eigen's headers. I am also getting these errors on a slightly different xCode implementation of my project. error C2039: 'ReturnType' : is not a member of 'Eigen::internal::scalar_product_traits<float,double>' error C2146: syntax error : missing ';' before identifier 'Scalar' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2868: 'Eigen::internal::traits<Derived>::Scalar' : illegal syntax for using-declaration; expected qualified-name All occur on line 21 of diagonalproduct.h Thanks for your help, Kris |
Moderator
|
You are mixing float and double in the same expression which is not allowed in Eigen. You should get a more explicit error line. If that's the intended purpose, then cast the float expression to double: (blabla_float).cast<double>() * blabla_double
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]