Skip to content

Commit

Permalink
Update rules/S2807/cfamily/rule.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: tomasz-kaminski-sonarsource <[email protected]>
  • Loading branch information
1 parent e7b64d7 commit 95e4c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/S2807/cfamily/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When overloading binary or relational operators, it is recommended that they be

=== The hidden friend pattern

The hidden friend pattern consists of declaring and defining a function directly as a friend inside the class body. This reduces the visibility of the function, that will only be considered when called on an object of the enclosing class.
The hidden friend pattern consists of declaring and defining a function directly as a friend inside the class body. This reduces the function's visibility to argument-dependent lookup only. Approximately, such a function is considered only when called on an object of the enclosing class.

[source,cpp]
----
Expand Down

0 comments on commit 95e4c72

Please sign in to comment.