Forward declaring std::array does not work with all std libs, so let's just include <array>

This commit is contained in:
Gael Guennebaud 2018-07-13 13:06:44 +02:00
parent 3875fb05aa
commit 86d9c0255c
2 changed files with 4 additions and 7 deletions

View File

@ -80,6 +80,10 @@
// for min/max:
#include <algorithm>
#if EIGEN_HAS_CXX11
#include <array>
#endif
// for std::is_nothrow_move_assignable
#ifdef EIGEN_INCLUDE_TYPE_TRAITS
#include <type_traits>

View File

@ -360,13 +360,6 @@ 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 };
};