Synopsis: | If you overload one of a closely related set of operators, then you should overload the whole set and preserve the same invariants that exist for built-in types |
Language: | C++ |
Severity Level: | 9 |
Category: | Class Interface |
Description: |
When an expression is using one of the operators, it is expected to work with the opposite operator as well. |