From 5ac27d5b519d63abeadd2537e2c607271f47536f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 8 Jul 2017 21:58:44 -0700 Subject: Avoid relying on cxx11 features when possible. --- unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h b/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h index 4b165399f..2b1968de1 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h @@ -101,7 +101,7 @@ struct TensorEvaluator, Device> }; EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device) - : m_impl(op.expression(), device), m_device(device) + : m_impl(op.expression(), device), m_traceDim(1), m_device(device) { EIGEN_STATIC_ASSERT((NumOutputDims >= 0), YOU_MADE_A_PROGRAMMING_MISTAKE); @@ -276,7 +276,7 @@ struct TensorEvaluator, Device> array m_reduced; array m_reducedDims; // Initialize the size of the trace dimension - Index m_traceDim = 1; + Index m_traceDim; array m_outputStrides; array m_reducedStrides; array m_preservedStrides; -- cgit v1.2.3