From 5d2e759329b4deac6b3c357bf9dfc8e9eab75b3f Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 20 Sep 2018 11:40:43 -0700 Subject: [PATCH] Initialize BlockIteratorState in a C++03 compatible way. --- unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h index aa2e5bcc6..558130300 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h @@ -188,7 +188,14 @@ class TensorBlockIO { StorageIndex input_span; StorageIndex output_span; StorageIndex size; - StorageIndex count = 0; + StorageIndex count; + BlockIteratorState() + : input_stride(0), + output_stride(0), + input_span(0), + output_span(0), + size(0), + count(0) {} }; static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Copy(