make_span for array doesn't pass N as span template parameter (#498)

This commit is contained in:
ewoudvc 2017-04-25 21:01:49 +02:00 committed by Neil MacIntosh
parent ebe7ebfd85
commit 64c0ca64ce

View File

@ -669,9 +669,9 @@ span<ElementType> make_span(ElementType* firstElem, ElementType* lastElem)
}
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>