diff options
Diffstat (limited to 'eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h')
-rw-r--r-- | eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h b/eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h index 49d315a..ec27edd 100644 --- a/eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +++ b/eigen/unsupported/Eigen/CXX11/src/util/CXX11Meta.h @@ -40,7 +40,7 @@ template<typename T, T... nn> struct numeric_list { constexpr static std::size_t count = sizeof...(nn); }; template<typename T, T n, T... nn> -struct numeric_list<T, n, nn...> { static const std::size_t count = sizeof...(nn) + 1; const static T first_value = n; }; +struct numeric_list<T, n, nn...> { constexpr static std::size_t count = sizeof...(nn) + 1; constexpr static T first_value = n; }; /* numeric list constructors * @@ -123,10 +123,6 @@ template<typename a, typename... as> struct get<0, type_lis template<typename T, int n, T a, T... as> struct get<n, numeric_list<T, a, as...>> : get<n-1, numeric_list<T, as...>> {}; template<typename T, T a, T... as> struct get<0, numeric_list<T, a, as...>> { constexpr static T value = a; }; -template<std::size_t n, typename T, T a, T... as> constexpr T array_get(const numeric_list<T, a, as...>&) { - return get<(int)n, numeric_list<T, a, as...>>::value; -} - /* always get type, regardless of dummy; good for parameter pack expansion */ template<typename T, T dummy, typename t> struct id_numeric { typedef t type; }; |