AK: Make Span::operator==() comply with the ISO C++ idea of operator==

This should:
- Accept const& on both sides
- Not involve implicit conversions on either side

otherwise the argument order would be deemed significant, and trip this
warning.
This commit is contained in:
Ali Mohammad Pur 2021-09-13 02:16:10 +04:30 committed by Ali Mohammad Pur
parent a42c7757d3
commit 25f43ea0a1

View file

@ -218,7 +218,7 @@ public:
return *this;
}
constexpr bool operator==(Span<const T> other) const
constexpr bool operator==(Span const& other) const
{
if (size() != other.size())
return false;