From 66556d0e05546107d4619ea4de66d1c8aa184259 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 25 May 2016 14:34:27 -0700 Subject: Made the index pair list code more portable accross various compilers --- unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 7aebd6f28..191a820f7 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -569,7 +569,7 @@ template struct index_pair_first_statically_eq_impl > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList().value_known_statically(i) & - (IndexPairList()[i].first == value); + (IndexPairList().operator[](i).first == value); } }; @@ -577,7 +577,7 @@ template struct index_pair_first_statically_eq_impl > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList().value_known_statically(i) & - (IndexPairList()[i].first == value); + (IndexPairList().operator[](i).first == value); } }; @@ -594,7 +594,7 @@ template struct index_pair_second_statically_eq_impl > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList().value_known_statically(i) & - (IndexPairList()[i].second == value); + (IndexPairList().operator[](i).second == value); } }; @@ -602,7 +602,7 @@ template struct index_pair_second_statically_eq_impl > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList().value_known_statically(i) & - (IndexPairList()[i].second == value); + (IndexPairList().operator[](i).second == value); } }; -- cgit v1.2.3