Add enable_if restriction for span constructor from c array (#1055)

* Add enable_if restriction for span constructor from c array

* Try to simplify enable if

* Revert "Try to simplify enable if"

This reverts commit b133835f8cfe43e75478f2a8df06ad5265b7f163.
This commit is contained in:
mike919192 2025-03-27 11:15:31 -04:00 committed by GitHub
parent a12dbbd911
commit a75d1d2a30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ namespace etl
//*************************************************************************
/// Construct from C array
//*************************************************************************
template<size_t Array_Size>
template<size_t Array_Size, typename = typename etl::enable_if<(Extent == etl::dynamic_extent) || (Array_Size == Extent), void>::type>
ETL_CONSTEXPR span(element_type(&begin_)[Array_Size]) ETL_NOEXCEPT
: pbegin(begin_)
{