diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h index fe0d57f31..94871ef43 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h @@ -291,8 +291,8 @@ struct DSizes : array { } #ifdef EIGEN_HAS_INDEX_LIST - EIGEN_DEVICE_FUNC template + EIGEN_DEVICE_FUNC DSizes(const Eigen::IndexList& dimensions) { for (int i = 0; i < dimensions.count; ++i) { (*this)[i] = dimensions[i];