From 28b36632ec4c8c4c92a8d0dbf0cc6f1e3c445ad1 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 30 Jun 2015 13:23:05 -0700 Subject: [PATCH] Turned Eigen::array::size into a function to make the code compatible with std::array --- unsupported/Eigen/CXX11/src/Core/util/EmulateCXX11Meta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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];