Turned Eigen::array::size into a function to make the code compatible with std::array

This commit is contained in:
Benoit Steiner 2015-06-30 13:23:05 -07:00
parent 109005c6c9
commit 28b36632ec

View File

@ -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];