mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05: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: https://github.com/SerenityOS/serenity/commit/25f43ea0a1c 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;
|
||||
}
|
||||
|
||||
constexpr bool operator==(Span<const T> other) const
|
||||
constexpr bool operator==(Span const& other) const
|
||||
{
|
||||
if (size() != other.size())
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue