gen_numeric_list takes a size_t, not a int

This commit is contained in:
Benoit Steiner 2015-11-12 08:30:10 -08:00
parent dfbb889fe9
commit aa5f1ca714

View File

@ -110,7 +110,7 @@ namespace internal{
}
/** Make an array (for index/dimensions) out of a custom index */
template<typename Index, int NumIndices, typename IndexType>
template<typename Index, std::size_t NumIndices, typename IndexType>
EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
array<Index, NumIndices> customIndices2Array(IndexType& idx) {
return customIndices2Array(idx, typename gen_numeric_list<Index, NumIndices>::type{});