Boost logo

Boost :

From: David Sankel (camio_at_[hidden])
Date: 2002-11-02 23:29:37


--- "Kevin S. Van Horn" <Kevin.VanHorn_at_[hidden]>
wrote:
> A few months ago there was some talk about checking
> preconditions. In
> some places in the Boost libraries, exceptions are
> thrown, and in others,
> assert() or its equivalent is used. I mentioned
> that you generally want
> to core dump when you're debugging, but in many
> enterprise settings this
> is not acceptable for production code, and it is
> preferable to throw an
> exception (e.g., abort a single transaction). What
> you really want is to
> allow the user to choose which behavior you get.
>
> Comments?

Would an assertion ever be preferable to an exception
even with debugging? If so, could someone give an
example? Wouldn't the boost.test package with
cpp_main do something similar to this debugging
facility suggestion?

David J. Sankel
Electron Consulting

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/


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