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 struct get_compile_time { - enum { value = Default }; + static const int value = Default; }; template struct get_compile_time,Default> { - enum { value = N }; + static const int value = N; +}; + +template struct get_compile_time (*)(),Default> { + static const int value = N; }; template struct get_compile_time,Default> { - enum { value = N }; + static const int value = N ; }; template struct get_compile_time,Default> { - enum { value = N }; + static const int value = N; };