mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
Move operator== into namespace
Argument-dependent lookup will find these if in the same namespace as Proof itself.
This commit is contained in:
parent
e3999ccb26
commit
03add6ebe3
|
@ -139,9 +139,7 @@ cryptonote::NOTIFY_BTENCODED_UPTIME_PROOF::request Proof::generate_request() con
|
|||
return request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool operator==(const uptime_proof::Proof& lhs, const uptime_proof::Proof& rhs)
|
||||
bool operator==(const Proof& lhs, const Proof& rhs)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
|
@ -162,8 +160,9 @@ bool operator==(const uptime_proof::Proof& lhs, const uptime_proof::Proof& rhs)
|
|||
return result;
|
||||
}
|
||||
|
||||
bool operator!=(const uptime_proof::Proof& lhs, const uptime_proof::Proof& rhs)
|
||||
bool operator!=(const Proof& lhs, const Proof& rhs)
|
||||
{
|
||||
return !(lhs == rhs);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ public:
|
|||
cryptonote::NOTIFY_BTENCODED_UPTIME_PROOF::request generate_request() const;
|
||||
};
|
||||
|
||||
bool operator==(const Proof& lhs, const Proof& rhs);
|
||||
bool operator!=(const Proof& lhs, const Proof& rhs);
|
||||
|
||||
}
|
||||
bool operator==(const uptime_proof::Proof& lhs, const uptime_proof::Proof& rhs);
|
||||
bool operator!=(const uptime_proof::Proof& lhs, const uptime_proof::Proof& rhs);
|
||||
|
|
Loading…
Reference in a new issue