Fix compile with libc++ 18 (#3680)
This commit is contained in:
@@ -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()) {
|
if (is_create()) {
|
||||||
return !other.is_create();
|
return !other.is_create();
|
||||||
} else if (is_update()) {
|
} else if (is_update()) {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class Operation {
|
|||||||
// Define a partial order on Operations:
|
// Define a partial order on Operations:
|
||||||
// - Create < Update < Delete < UndoPoint
|
// - Create < Update < Delete < UndoPoint
|
||||||
// - Given two updates, sort by timestamp
|
// - Given two updates, sort by timestamp
|
||||||
bool operator<(Operation &other) const;
|
bool operator<(const Operation &other) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const tc::Operation *op;
|
const tc::Operation *op;
|
||||||
|
|||||||
Reference in New Issue
Block a user