mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Propagate compile-time size for plain arrays
This commit is contained in:
parent
3264d3c761
commit
76e183bd52
@ -173,6 +173,10 @@ template<typename T, int XprSize> struct get_compile_time_size<T,XprSize,typenam
|
|||||||
enum { value = T::SizeAtCompileTime };
|
enum { value = T::SizeAtCompileTime };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename T, int XprSize, int N> struct get_compile_time_size<const T (&)[N],XprSize> {
|
||||||
|
enum { value = N };
|
||||||
|
};
|
||||||
|
|
||||||
#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, int N> struct get_compile_time_size<std::array<T,N>,XprSize> {
|
||||||
enum { value = N };
|
enum { value = N };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user