diff options
-rw-r--r-- | Eigen/src/Core/util/IntegralConstant.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/IntegralConstant.h b/Eigen/src/Core/util/IntegralConstant.h index 7f99863a1..003856b20 100644 --- a/Eigen/src/Core/util/IntegralConstant.h +++ b/Eigen/src/Core/util/IntegralConstant.h @@ -47,20 +47,24 @@ protected: }; template<typename T, int Default=Dynamic> struct get_compile_time { - enum { value = Default }; + static const int value = Default; }; template<int N,int Default> struct get_compile_time<fix_t<N>,Default> { - enum { value = N }; + static const int value = N; +}; + +template<int N,int Default> struct get_compile_time<fix_t<N> (*)(),Default> { + static const int value = N; }; template<int N,int Default> struct get_compile_time<variable_or_fixed<N>,Default> { - enum { value = N }; + static const int value = N ; }; template<typename T, int N, int Default> struct get_compile_time<variable_if_dynamic<T,N>,Default> { - enum { value = N }; + static const int value = N; }; |