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.
Sunday, November 7, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment