Fix compilation regarding std::array

This commit is contained in:
Gael Guennebaud 2018-07-12 17:00:37 +02:00
parent eb3d8f68bb
commit 98728312c8

View File

@ -360,6 +360,13 @@ template<typename T, int N> struct array_size<T (&)[N]> {
};
#if EIGEN_HAS_CXX11
}}
namespace std {
template<class T, std::size_t N> struct array;
}
namespace Eigen {
namespace internal {
template<typename T, std::size_t N> struct array_size<const std::array<T,N> > {
enum { value = N };
};