From b92c71235d0ccc62bc3f6f009a58504475468ea6 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 2 Oct 2018 18:59:10 +0200 Subject: Move struct outside of method for C++03 compatibility. --- unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h index 213379dbd..69a59906b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h @@ -195,6 +195,14 @@ struct TensorEvaluator, Device> m_impl.getResourceRequirements(resources); } + // required in block(OutputTensorBlock* output_block) const + // For C++03 compatibility this must be defined outside the method + struct BlockIteratorState { + Index stride; + Index span; + Index size; + Index count; + }; // TODO(andydavis) Reduce the overhead of this function. EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void block( OutputTensorBlock* output_block) const { @@ -219,12 +227,6 @@ struct TensorEvaluator, Device> } // Initialize output block iterator state. - struct BlockIteratorState { - Index stride; - Index span; - Index size; - Index count; - }; array block_iter_state; for (Index i = 0; i < NumOutputDims; ++i) { -- cgit v1.2.3