I've got a templated matrix class
Matrix< Type, Row, Col>
I've got a method
void class:
erform_calculation( Matrix<int, 5, 4> & matrix )
{
Matrix<int, 4, 5> matrix_transposed = matrix.transpose();
... do other stuff ...
}
I get a compiler error telling me that transpose is not a member of Matrix, but it most definitely is. If I pass by value, I don't get the error.
I must be missing something? Anyone know?
Matrix< Type, Row, Col>
I've got a method
void class:
{
Matrix<int, 4, 5> matrix_transposed = matrix.transpose();
... do other stuff ...
}
I get a compiler error telling me that transpose is not a member of Matrix, but it most definitely is. If I pass by value, I don't get the error.
I must be missing something? Anyone know?