mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +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:
|
// for min/max:
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#if EIGEN_HAS_CXX11
|
||||||
|
#include <array>
|
||||||
|
#endif
|
||||||
|
|
||||||
// for std::is_nothrow_move_assignable
|
// for std::is_nothrow_move_assignable
|
||||||
#ifdef EIGEN_INCLUDE_TYPE_TRAITS
|
#ifdef EIGEN_INCLUDE_TYPE_TRAITS
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
@ -360,13 +360,6 @@ template<typename T, int N> struct array_size<T (&)[N]> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if EIGEN_HAS_CXX11
|
#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> > {
|
template<typename T, std::size_t N> struct array_size<const std::array<T,N> > {
|
||||||
enum { value = N };
|
enum { value = N };
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user