mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Propagate compile-time size for plain arrays
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user