diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-25 14:34:27 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-25 14:34:27 -0700 |
commit | 66556d0e05546107d4619ea4de66d1c8aa184259 (patch) | |
tree | 3b424ee1505cf52f16bcb9a14285d8028a56766d /unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | |
parent | 034aa3b2c0fa55cdf7d4bf052a067989218565c0 (diff) |
Made the index pair list code more portable accross various compilers
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <typename FirstType, typename... OtherTypes> struct index_pair_first_statically_eq_impl<IndexPairList<FirstType, OtherTypes...> > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList<FirstType, OtherTypes...>().value_known_statically(i) & - (IndexPairList<FirstType, OtherTypes...>()[i].first == value); + (IndexPairList<FirstType, OtherTypes...>().operator[](i).first == value); } }; @@ -577,7 +577,7 @@ template <typename FirstType, typename... OtherTypes> struct index_pair_first_statically_eq_impl<const IndexPairList<FirstType, OtherTypes...> > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList<FirstType, OtherTypes...>().value_known_statically(i) & - (IndexPairList<FirstType, OtherTypes...>()[i].first == value); + (IndexPairList<FirstType, OtherTypes...>().operator[](i).first == value); } }; @@ -594,7 +594,7 @@ template <typename FirstType, typename... OtherTypes> struct index_pair_second_statically_eq_impl<IndexPairList<FirstType, OtherTypes...> > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList<FirstType, OtherTypes...>().value_known_statically(i) & - (IndexPairList<FirstType, OtherTypes...>()[i].second == value); + (IndexPairList<FirstType, OtherTypes...>().operator[](i).second == value); } }; @@ -602,7 +602,7 @@ template <typename FirstType, typename... OtherTypes> struct index_pair_second_statically_eq_impl<const IndexPairList<FirstType, OtherTypes...> > { EIGEN_DEVICE_FUNC static constexpr bool run(const DenseIndex i, const DenseIndex value) { return IndexPairList<FirstType, OtherTypes...>().value_known_statically(i) & - (IndexPairList<FirstType, OtherTypes...>()[i].second == value); + (IndexPairList<FirstType, OtherTypes...>().operator[](i).second == value); } }; |