diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-26 10:30:40 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-26 10:30:40 -0400 |
commit | 6ac59d1d5e200cccd3ddaa6d1c3b0d8d116a06be (patch) | |
tree | c07c22bdabbd6a2a979f581429448284cbd59a19 /.github/workflows/pre-commit.yaml | |
parent | 6400284278071b774d2837d62142a15b94120198 (diff) |
Fix GCC ambiguous-reversed-operator errors for `LLKeyData` compares.
`LLKeyData::operator==(const LLKeyData&)` and `operator!=(const LLKeyData&)`
were not themselves `const` methods. In C++20, that can produce a fatal
warning that if the compare operands were reversed, you'd get different
results. Making them both `const` should fix it.
While touching the method definitions, make `operator==()` more intuitive, and
make `operator!=()` simply negate `operator==()` instead of restating it in
reverse.
Diffstat (limited to '.github/workflows/pre-commit.yaml')
0 files changed, 0 insertions, 0 deletions