diff options
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorRef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h index 4c6420586..030d19844 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h @@ -408,7 +408,7 @@ struct TensorEvaluator<const TensorRef<Derived>, Device> return m_ref.coeffRef(index); } - EIGEN_DEVICE_FUNC Scalar* data() const { return m_ref.data(); } + EIGEN_DEVICE_FUNC const Scalar* data() const { return m_ref.data(); } protected: TensorRef<Derived> m_ref; |