mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Fix extent error in clang and gcc
This commit is contained in:
parent
0d14b5adfc
commit
23001a69b6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user