mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-15 09:31:47 +08:00
Backport "disambiguate overloads for empty index list" to 3.4 branch
This commit is contained in:
parent
bae907b8f6
commit
fc5575264f
@ -261,7 +261,7 @@ template <typename Idx> struct IndexPair {
|
||||
#ifdef EIGEN_HAS_SFINAE
|
||||
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
|
||||
array<Index, 1 + sizeof...(Is)> customIndices2Array(IndexType& idx, numeric_list<Index, First, Is...>) {
|
||||
return { static_cast<Index>(idx[First]), static_cast<Index>(idx[Is])... };
|
||||
|
Loading…
x
Reference in New Issue
Block a user