Fix compile with libc++ 18 (#3680)

This commit is contained in:
Chongyun Lee 2024-11-14 11:09:08 +08:00 committed by GitHub
parent 3e8bda6a23
commit 8cc4c461d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ Operation& Operation::operator=(const Operation& other) {
}
////////////////////////////////////////////////////////////////////////////////
bool Operation::operator<(Operation& other) const {
bool Operation::operator<(const Operation& other) const {
if (is_create()) {
return !other.is_create();
} else if (is_update()) {

View file

@ -78,7 +78,7 @@ class Operation {
// Define a partial order on Operations:
// - Create < Update < Delete < UndoPoint
// - Given two updates, sort by timestamp
bool operator<(Operation &other) const;
bool operator<(const Operation &other) const;
private:
const tc::Operation *op;