Remove unnecessary std::tuple reference.

This commit is contained in:
Antonio Sanchez 2021-09-08 11:31:56 -07:00 committed by Rasmus Munk Larsen
parent 26e5beb8cb
commit 6c10495a78

View File

@ -379,10 +379,10 @@ template<typename FirstType, typename... OtherTypes> struct array_size<const Ind
};
template<typename FirstType, typename... OtherTypes> struct array_size<IndexPairList<FirstType, OtherTypes...> > {
static const size_t value = std::tuple_size<std::tuple<FirstType, OtherTypes...> >::value;
static const size_t value = 1 + sizeof...(OtherTypes);
};
template<typename FirstType, typename... OtherTypes> struct array_size<const IndexPairList<FirstType, OtherTypes...> > {
static const size_t value = std::tuple_size<std::tuple<FirstType, OtherTypes...> >::value;
static const size_t value = 1 + sizeof...(OtherTypes);
};
template<Index N, typename FirstType, typename... OtherTypes> EIGEN_DEVICE_FUNC constexpr Index array_get(IndexList<FirstType, OtherTypes...>& a) {