Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-07-18 09:09:45


Alexander Terekhov wrote:
> jhopkin_at_[hidden] wrote:
>
>>I agree that logic errors should be caught by assertions.
>>
>>The problem with throwing from logic errors is that when a logic error
>>occurs, all bets are off.
>
> Right.

I wonder what I'm doing wrong. Dtors, smart pointers, etc. take care of
my environment when an exception is thrown and allow me to only abort a
small part (we call it a "session") of the process while the rest is
still in a perfectly consistent state. Well, maybe it's my fault and I
should learn how to write code that mixes up the whole memory on every
small programming error ;)

Regards, Daniel

PS: Note that there's also a difference between the standard theretical
world or portable, well defined behaviour and the real world. I am
explicitly talking about the real world! Boost is not an academic
excercise. At least I hope so... :o)

-- 
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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