diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-11-12 18:11:56 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-11-12 18:11:56 -0800 |
commit | 150c12e138ab372d7f43ce19b260acd36ede9fc3 (patch) | |
tree | 0ba453d0de90ca8b9a9f5eca1cff3eb2d58b41e1 /unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | |
parent | 8037826367a7becab046df2a8be08a28806a625f (diff) |
Completed the IndexList rewrite
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h index 206808245..170dacb98 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h @@ -46,27 +46,27 @@ template<DenseIndex n, typename Index, std::size_t Rank> const Index array_get(c #if defined(EIGEN_HAS_CONSTEXPR) template <typename Index, std::size_t Rank> -struct index_known_statically<DimensionList<Index, Rank> > { - constexpr bool operator() (const DenseIndex) const { +struct index_known_statically_impl<DimensionList<Index, Rank> > { + static constexpr bool run(const DenseIndex) { return true; } }; template <typename Index, std::size_t Rank> -struct index_known_statically<const DimensionList<Index, Rank> > { - constexpr bool operator() (const DenseIndex) const { +struct index_known_statically_impl<const DimensionList<Index, Rank> > { + static constexpr bool run(const DenseIndex) { return true; } }; template <typename Index, std::size_t Rank> -struct all_indices_known_statically<DimensionList<Index, Rank> > { - constexpr bool operator() () const { +struct all_indices_known_statically_impl<DimensionList<Index, Rank> > { + static constexpr bool run() { return true; } }; template <typename Index, std::size_t Rank> -struct all_indices_known_statically<const DimensionList<Index, Rank> > { - constexpr bool operator() () const { +struct all_indices_known_statically_impl<const DimensionList<Index, Rank> > { + static constexpr bool run() { return true; } }; |