From 7fe704596a2cfa71eb7eae7fd91bc105f038b13f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 26 Nov 2016 11:26:07 -0800 Subject: [PATCH] Added missing array_get method for numeric_list --- unsupported/Eigen/CXX11/src/util/CXX11Meta.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h index ec27eddb8..63c2a1def 100644 --- a/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/util/CXX11Meta.h @@ -123,6 +123,10 @@ template struct get<0, type_lis template struct get> : get> {}; template struct get<0, numeric_list> { constexpr static T value = a; }; +template constexpr inline const T array_get(const numeric_list& l) { + return get<(int)n, numeric_list>::value; +} + /* always get type, regardless of dummy; good for parameter pack expansion */ template struct id_numeric { typedef t type; };