Fixed a test

This commit is contained in:
Benoit Steiner
2014-10-31 00:04:13 -07:00
parent 67fcf47ecb
commit 85c3389b28
3 changed files with 5 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ class TensorLazyEvaluatorReadOnly : public TensorLazyBaseEvaluator<Dimensions, t
virtual const Scalar coeff(DenseIndex index) const {
return m_impl.coeff(index);
}
virtual Scalar& coeffRef(DenseIndex index) {
virtual Scalar& coeffRef(DenseIndex) {
eigen_assert(false && "can't reference the coefficient of a rvalue");
return *reinterpret_cast<Scalar*>(dummy);
};