Saturday, November 13, 2010

Builtin Objects Throwing Exceptions

A builtin object cannot throw an exception.

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

You can argue that operations on a builtin can throw an exception. For example, new int() may throw a bad_alloc exception.

No comments:

Post a Comment