aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2018-09-14 17:17:50 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2018-09-14 17:17:50 -0700
commit71070a1e84538a91e6ecf364f4a23716eeb780bc (patch)
treea738d71cbcb29daede10e886cb334c58984b3586 /unsupported
parent14e35855e1128a3ee887552577f6637e2a948620 (diff)
Const cast scalar pointer in TensorSlicingOp evaluator
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
index 16dc74afe..d19aba3b3 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h
@@ -695,7 +695,7 @@ struct TensorEvaluator<const TensorSlicingOp<StartIndices, Sizes, ArgType>, Devi
}
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE typename Eigen::internal::traits<XprType>::PointerType data() const {
- Scalar* result = m_impl.data();
+ Scalar* result = const_cast<Scalar*>(m_impl.data());
if (result) {
Index offset = 0;
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {