mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Turned Eigen::array::size into a function to make the code compatible with std::array
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user