mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +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
Notes:
sideshowbarker
2024-07-18 04:03:17 +09:00
Author: https://github.com/alimpfard
Commit: 25f43ea0a1
Pull-request: https://github.com/SerenityOS/serenity/pull/9976
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