From e9ecfad7967fd5285846647372897ecdc125f976 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 12 Nov 2015 16:41:14 -0800 Subject: Started to make the IndexList code compile by more compilers --- unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h index 17d89d5e1..da7782188 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h @@ -72,14 +72,14 @@ struct all_indices_known_statically > { }; template -struct indices_statically_known_to_increase > { - constexpr bool operator() () const { +struct indices_statically_known_to_increase_impl > { + static constexpr bool run() { return true; } }; template -struct indices_statically_known_to_increase > { - constexpr bool operator() () const { +struct indices_statically_known_to_increase_impl > { + static constexpr bool run() { return true; } }; @@ -164,14 +164,14 @@ struct all_indices_known_statically > { }; template -struct indices_statically_known_to_increase > { - EIGEN_ALWAYS_INLINE bool operator() () const { +struct indices_statically_known_to_increase_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run() { return true; } }; template -struct indices_statically_known_to_increase > { - EIGEN_ALWAYS_INLINE bool operator() () const { +struct indices_statically_known_to_increase_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run() { return true; } }; -- cgit v1.2.3