diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 13:23:05 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-06-30 13:23:05 -0700 |
commit | 28b36632ec4c8c4c92a8d0dbf0cc6f1e3c445ad1 (patch) | |
tree | 92333d37e1257b944a0741fd19f0beb5487fcd1a /unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h | |
parent | 109005c6c9a3e6e1e42ff9efc71be3a899519ed4 (diff) |
Turned Eigen::array::size into a function to make the code compatible with std::array
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h b/unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h index 77b92ee9b..2244e40c2 100644 --- a/unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h @@ -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]; |