diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-01-11 17:08:59 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-01-11 17:08:59 +0100 |
commit | f93d1c58e09b8435191a55f123873d8f496620b6 (patch) | |
tree | 9c327f856ee4f469e98db3b151430d75badc7eb8 /Eigen/src/Core/util/IntegralConstant.h | |
parent | c020d307a657a3783c593c4ce2b6a8325a04cd70 (diff) |
Make get_compile_time compatible with variable_if_dynamic
Diffstat (limited to 'Eigen/src/Core/util/IntegralConstant.h')
-rw-r--r-- | Eigen/src/Core/util/IntegralConstant.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/IntegralConstant.h b/Eigen/src/Core/util/IntegralConstant.h index f6b206275..a4394c464 100644 --- a/Eigen/src/Core/util/IntegralConstant.h +++ b/Eigen/src/Core/util/IntegralConstant.h @@ -32,6 +32,12 @@ template<int N,int Default> struct get_compile_time<fix_t<N>,Default> { enum { value = N }; }; +template<typename T, int N, int Default> +struct get_compile_time<variable_if_dynamic<T,N>,Default> { + enum { value = N }; +}; + + template<typename T> struct is_compile_time { enum { value = false }; }; template<int N> struct is_compile_time<fix_t<N> > { enum { value = true }; }; |