no ColsAtCompileTime in Eigen::Transform, needed by inverse_impl

Submitted by Bob

Assigned to Nobody

Link to original bugzilla bug (#244)
Version: 3.0

Description

Created attachment 151
VC10 compilation errors

The below code produces some compile time errors, of which this is probably the most important one:

1> bla\eigen\src/LU/Inverse.h(300): error C2039: 'ColsAtCompileTime' : is not a member of 'Eigen::Transform<_Scalar,_Dim,_Mode>'

The required information is available however, but not in Transform::ColsAtCompileTime, but in Transform::MatrixType::ColsAtCompileTime

The other errors look like they are being caused by the same problem.

Complete error in attachment.

Code:

#include <Eigen/Core>
#include <Eigen/Geometry>

Eigen::Matrix4f inverse(Eigen::Matrix4f& mat){
return mat.inverse();
}

int main() {

Eigen::Matrix4f transformMatrix;  

// does not work  
auto invMatrix = transformMatrix.inverse();  
Eigen::Affine3f aff(invMatrix);  

// works as expected  
Eigen::Affine3f aff2(inverse(transformMatrix));  

}

Attachment 151, "VC10 compilation errors":
errors.txt

Edited by Charles Schlosser