Fixed a constness bug

This commit is contained in:
Benoit Steiner 2016-01-21 17:08:11 -08:00
parent 34340458cb
commit c33479324c

View File

@ -146,7 +146,7 @@ struct TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device>
return m_impl.template packet<LoadMode>(index);
}
EIGEN_DEVICE_FUNC CoeffReturnType* data() const { return m_impl.data(); }
EIGEN_DEVICE_FUNC Scalar* data() const { return m_impl.data(); }
const TensorEvaluator<ArgType, Device>& impl() const { return m_impl; }