Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-10-10 16:26:08


Ian McCulloch wrote:
> Eric Niebler wrote:
>
>> Assert != exception.
>
>
> Fine. But why not use an exception as part of the mechanism for saving some
> (hopefully) recoverable data?

Because exceptions cause unwinding, and that will potentially cause
*lots* of code to execute. You don't want lots of code to execute when
you're in an unstable state. You want to call your emergency clean-up
code, dump core and die, immediately.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk