Fix extent error in clang and gcc

This commit is contained in:
John Wellbelove 2021-03-01 18:38:29 +00:00
parent 0d14b5adfc
commit 23001a69b6
2 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ namespace etl
template <typename T, unsigned MAXN>
struct extent<T[MAXN], 0> : integral_constant<size_t, MAXN> {};
template <typename T, size_t I, unsigned MAXN>
template <typename T, unsigned I, unsigned MAXN>
struct extent<T[I], MAXN> : integral_constant<size_t, extent<T, MAXN - 1>::value> {};
#if ETL_CPP17_SUPPORTED

View File

@ -572,7 +572,7 @@ namespace etl
template <typename T, unsigned MAXN>
struct extent<T[MAXN], 0> : integral_constant<size_t, MAXN> {};
template <typename T, size_t I, unsigned MAXN>
template <typename T, unsigned I, unsigned MAXN>
struct extent<T[I], MAXN> : integral_constant<size_t, extent<T, MAXN - 1>::value> {};
#if ETL_CPP17_SUPPORTED