Fix extraction of compile-time size of std::array with gcc

This commit is contained in:
Gael Guennebaud 2017-01-06 22:04:49 +01:00
parent 233dff1b35
commit 75aef5b37f

View File

@ -178,7 +178,7 @@ template<typename T, int XprSize, int N> struct get_compile_time_size<const T (&
}; };
#ifdef EIGEN_HAS_CXX11 #ifdef EIGEN_HAS_CXX11
template<typename T, int XprSize, int N> struct get_compile_time_size<std::array<T,N>,XprSize> { template<typename T, int XprSize, std::size_t N> struct get_compile_time_size<std::array<T,N>,XprSize> {
enum { value = N }; enum { value = N };
}; };
#endif #endif