On 9/24/2011 4:30 AM, Trass3r wrote:
Don't memory allocations prevent a function from being nothrow?

No. The decision was made early on that out of memory are non-recoverable exceptions. Nothrow only pertains to recoverable exceptions.

The reasons are:

1. nothrow would be fairly useless if memory allocation could throw

2. in my experience, applications cannot realistically recover from out of memory. The best they can do is shut themselves down sanely

Reply via email to