Worked around a constness related issue

This commit is contained in:
Benoit Steiner 2016-03-21 11:24:05 -07:00
parent 7a07d6aa2b
commit 8ef3181f15

View File

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