Sunday, November 14, 2010

Exception Safety

During an operation on a class, after the class's state is updated, only non-throwing operations should be called. Otherwise your class will not be exception-safe.

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

No comments:

Post a Comment