Span: Improve comparison operator to array by using fixed size Span.

pull/7828/head
Vincent Coubard 2018-08-20 09:13:31 +01:00
parent 7f195b8ec1
commit eba1dc6dd6
1 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ bool operator!=(const Span<T, LhsSize>& lhs, const Span<U, RhsSize>& rhs)
template<typename T, ptrdiff_t LhsSize, ptrdiff_t RhsSize>
bool operator!=(const Span<T, LhsSize>& lhs, T (&rhs)[RhsSize])
{
return !(lhs == Span<T>(rhs));
return !(lhs == Span<T, RhsSize>(rhs));
}
/**
@ -456,7 +456,7 @@ bool operator!=(const Span<T, LhsSize>& lhs, T (&rhs)[RhsSize])
template<typename T, ptrdiff_t LhsSize, ptrdiff_t RhsSize>
bool operator!=(T (& lhs)[LhsSize], const Span<T, RhsSize>& rhs)
{
return !(Span<T>(lhs) == rhs);
return !(Span<T, LhsSize>(lhs) == rhs);
}
/**