mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
make_span for array doesn't pass N as span template parameter (#498)
This commit is contained in:
parent
ebe7ebfd85
commit
64c0ca64ce
@ -669,9 +669,9 @@ span<ElementType> make_span(ElementType* firstElem, ElementType* lastElem)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class ElementType, std::size_t N>
|
template <class ElementType, std::size_t N>
|
||||||
span<ElementType> make_span(ElementType (&arr)[N])
|
span<ElementType, N> make_span(ElementType (&arr)[N])
|
||||||
{
|
{
|
||||||
return span<ElementType>(arr);
|
return span<ElementType, N>(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class Container>
|
template <class Container>
|
||||||
|
Loading…
Reference in New Issue
Block a user