mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Forward declaring std::array does not work with all std libs, so let's just include <array>
This commit is contained in:
parent
3875fb05aa
commit
86d9c0255c
@ -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>
|
||||
|
@ -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 };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user