Sunday, November 7, 2010

Operator +()

operator +() should be implemented in terms of operator +=(). This makes the behavior consistent and easier to maintain.

Reference: Exceptional C++ by Herb Sutter. Addison-Wesley, 1999, p 71.

No comments:

Post a Comment