TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  INT#011Checked automatically with code checker

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.



Literature References:
Ellemtel Rec. 36
ISC++ Rec. 7.15