Fix compilation.

The Matrix is required to be mutable but it also needs to be a reference and
temporaries do not bind to non-const references - thus we need a hack and
cast away the constness.
This commit is contained in:
Hauke Heibel
2013-08-02 22:40:36 +02:00
parent 51b361b3bb
commit 8f4d93a4b7
2 changed files with 10 additions and 3 deletions

View File

@@ -426,7 +426,6 @@ struct matrix_function_compute<MatrixType, 1>
static void run(const MatrixType& A, AtomicType& atomic, ResultType &result)
{
typedef internal::traits<MatrixType> Traits;
typedef typename MatrixType::Scalar Scalar;
typedef typename MatrixType::Index Index;
// compute Schur decomposition of A