mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 17:59:00 +08:00
disambiguate overloads for empty index list
This commit is contained in:
parent
c6fa0ca162
commit
e4c40b092a
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user