mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
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:
parent
a42c7757d3
commit
25f43ea0a1
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr bool operator==(Span<const T> other) const
|
constexpr bool operator==(Span const& other) const
|
||||||
{
|
{
|
||||||
if (size() != other.size())
|
if (size() != other.size())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue