mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 17:49:36 +08:00
Add missing overload of get_compile_time for c++98/11
This commit is contained in:
parent
edff32c2c2
commit
23bfcfc15f
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user