mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Turned Eigen::array::size into a function to make the code compatible with std::array
This commit is contained in:
parent
109005c6c9
commit
28b36632ec
@ -23,7 +23,7 @@ template <typename T, size_t n> class array {
|
||||
EIGEN_DEVICE_FUNC
|
||||
EIGEN_STRONG_INLINE const T& operator[] (size_t index) const { return values[index]; }
|
||||
|
||||
static const std::size_t size = n;
|
||||
static const std::size_t size() { return n; }
|
||||
|
||||
T values[n];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user