diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-20 11:40:43 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2018-09-20 11:40:43 -0700 |
commit | 5d2e759329b4deac6b3c357bf9dfc8e9eab75b3f (patch) | |
tree | fe755c4e5fc777b583e87fe1b30035228494e669 /unsupported/Eigen | |
parent | 44d8274383d379172bedc7eed4cbc5c6ce4f88a2 (diff) |
Initialize BlockIteratorState in a C++03 compatible way.
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h | 9 |
1 files changed, 8 insertions, 1 deletions
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( |