File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,15 @@ class CGPointerAuthInfo {
81
81
return AuthenticationMode == PointerAuthenticationMode::SignAndAuth;
82
82
}
83
83
84
- bool operator !=(const CGPointerAuthInfo &Other) const {
85
- return Key != Other.Key || Discriminator != Other.Discriminator ||
86
- AuthenticationMode != Other.AuthenticationMode ;
84
+ friend bool operator !=(const CGPointerAuthInfo &LHS,
85
+ const CGPointerAuthInfo &RHS) {
86
+ return LHS.Key != RHS.Key || LHS.Discriminator != RHS.Discriminator ||
87
+ LHS.AuthenticationMode != RHS.AuthenticationMode ;
87
88
}
88
89
89
- bool operator ==(const CGPointerAuthInfo &Other) const {
90
- return !(*this != Other);
90
+ friend bool operator ==(const CGPointerAuthInfo &LHS,
91
+ const CGPointerAuthInfo &RHS) {
92
+ return !(LHS != RHS);
91
93
}
92
94
};
93
95
You can’t perform that action at this time.
0 commit comments