mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
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:
parent
a12dbbd911
commit
a75d1d2a30
@ -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_)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user