Skip to content

Commit

Permalink
Fix compile with libc++ 18 (GothenburgBitFactory#3680)
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 authored Nov 14, 2024
1 parent 3e8bda6 commit 8cc4c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Operation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion src/Operation.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8cc4c46

Please sign in to comment.