mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibWeb: Declare defaulted style value comparision operators inline
Some versions of clang, such as Apple clang-1400.0.29.202 error out on the previous out of line operators. Explicitly defaulting comparison operators out of line is allowed per P2085R0, but was checked in clang before version 15 in C++20 mode.
This commit is contained in:
parent
840afbb55f
commit
4a70fa052f
4 changed files with 2 additions and 6 deletions
|
@ -39,7 +39,7 @@ private:
|
|||
struct Properties {
|
||||
ValueComparingNonnullRefPtr<StyleValueList> content;
|
||||
ValueComparingRefPtr<StyleValueList> alt_text;
|
||||
bool operator==(Properties const&) const;
|
||||
bool operator==(Properties const&) const = default;
|
||||
} m_properties;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue