mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-05 02:04:07 +08:00
Make get_compile_time compatible with variable_if_dynamic
This commit is contained in:
parent
c020d307a6
commit
f93d1c58e0
@ -32,6 +32,12 @@ template<int N,int Default> struct get_compile_time<fix_t<N>,Default> {
|
|||||||
enum { value = N };
|
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<typename T> struct is_compile_time { enum { value = false }; };
|
||||||
template<int N> struct is_compile_time<fix_t<N> > { enum { value = true }; };
|
template<int N> struct is_compile_time<fix_t<N> > { enum { value = true }; };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user