[Exceptional C++ Style] Item 12: Exception Safety: Is it Wort h it?

Hammond, Peter peter.hammond at amsjv.com
Mon Dec 6 05:02:08 EST 2004


James Dennet wrote:

> On Thursday, December 2, 2004, at 08:35 AM, Hammond, Peter wrote:
> 
> >
> >> Hello all,
> >>
> >>
> >> Summary for ITEM 12: Exception Safety: Is it Worth it?
> 
> If you just have things in memory, then it's fine to just 
> terminate the
> program with no cleanup, and in some cases (say, assertion failures)
> that's often the right thing to do -- but an exception being thrown 
> should
> not ordinarily by so terrible that an application can't clean up 
> properly.
> 
> > So how do you justify either using exceptions or not using them?
> >
> It depends on many factors, as do most such decisions.
> 
> -- James
> 

Any chance we could enumerate some of them? It would be very useful to me.
One of them is the presence of resources that are not cleaned up by the OS,
as you mentioned above.

Pete.
[ *** LongSig auto truncated *** ]



More information about the Effective-cpp mailing list