By jamesling
via digcode.com
Published: Jul 01 2008 / 09:10
In general, when you're overloading an operator in your user-defined C++ classes, it's recommended that you adhere to the basic semantics of the corresponding built-in operator. In other words, an overloaded operator has the same side effects on its operands and manifests the same interface as does the corresponding built-in operator. This article focus on how to overload the above operators and explain some guidelines for implementing these operators.
Add your comment