Fixed a test

This commit is contained in:
Benoit Steiner
2014-10-31 00:04:13 -07:00
parent 67fcf47ecb
commit 85c3389b28
3 changed files with 5 additions and 2 deletions

View File

@@ -384,6 +384,9 @@ static const size_t value = Sizes<Indices...>::count;
};
template <typename std::size_t... Indices> struct array_size<Sizes<Indices...> > {
static const size_t value = Sizes<Indices...>::count;
};
template <std::size_t n, typename std::size_t... Indices> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::size_t array_get(const Sizes<Indices...>) {
return get<n, typename Sizes<Indices...>::Base>::value;
};
#else
template <std::size_t V1, std::size_t V2, std::size_t V3, std::size_t V4, std::size_t V5> struct array_size<const Sizes<V1,V2,V3,V4,V5> > {