diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-07-01 12:47:52 -0700 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2021-07-01 22:58:14 +0000 |
commit | 6035da5283f12f7e6a49cda0c21696c8e5a115b7 (patch) | |
tree | c7b7aadecab4ba7be6a8e385c51d9bdadf68d464 /unsupported | |
parent | 154f00e9eacaec5667215784c7601b55024e2f61 (diff) |
Fix compile issues for gcc 4.8.
- Move constructors can only be defaulted as NOEXCEPT if all members
have NOEXCEPT move constructors.
- gcc 4.8 has some funny parsing bug in `a < b->c`, thinking `b-` is a template parameter.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h index 3b2100ab0..d96303224 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -372,7 +372,7 @@ template <typename T> struct ArgMaxTupleReducer EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const T t, T* accum) const { if (t.second < accum->second) { return; - } else if (t.second > accum->second || t.first < accum->first) { + } else if (t.second > accum->second || accum->first > t.first ) { *accum = t; } } @@ -400,7 +400,7 @@ template <typename T> struct ArgMinTupleReducer EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void reduce(const T& t, T* accum) const { if (t.second > accum->second) { return; - } else if (t.second < accum->second || t.first < accum->first) { + } else if (t.second < accum->second || accum->first > t.first) { *accum = t; } } |