backport is_valid_index_type fix from default branch and c++03
This commit is contained in:
parent
a8d516b04e
commit
1039348f12
@ -44,7 +44,7 @@ template<typename T> struct is_valid_index_type
|
|||||||
internal::is_integral<T>::value || __is_enum(T)
|
internal::is_integral<T>::value || __is_enum(T)
|
||||||
#else
|
#else
|
||||||
// without C++11, we use is_convertible to Index instead of is_integral in order to treat enums as Index.
|
// without C++11, we use is_convertible to Index instead of is_integral in order to treat enums as Index.
|
||||||
internal::is_convertible<T,Index>::value
|
internal::is_convertible<T,Index>::value && !internal::is_same<T,float>::value && !is_same<T,double>::value
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user