disambiguate overloads for empty index list

This commit is contained in:
Erik Schultheis 2021-12-07 19:40:09 +00:00 committed by Rasmus Munk Larsen
parent c6fa0ca162
commit e4c40b092a

View File

@ -266,9 +266,9 @@ template <typename Idx> struct IndexPair {
namespace internal { namespace internal {
template<typename IndexType, typename Index, Index... Is> template<typename IndexType, typename Index, Index First, Index... Is>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array<Index, sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, Is...>) { array<Index, 1 + sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, First, Is...>) {
return { idx[Is]... }; return { idx[Is]... };
} }
template<typename IndexType, typename Index> template<typename IndexType, typename Index>