Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-10-10 15:05:53

From: Eric Niebler <eric_at_[hidden]>
> Rob Stewart wrote:
> >
> > That way a debug build asserts, which likely gets a core dump,
> > and a release build throws an exception. If the exception is a
> > type that is never caught in the code except in main(), then
> > main() can report the problem and exit. That gives a clean exit
> > with a diagnostic in release builds, while giving the opportunity
> > for post mortem debugging in debug builds.
> No. An assert should not throw, not in release mode, not ever. If an

The code you snipped used assert(false) followed by throwing an
exception. The assertion never threw an exception. IOW, belt
and suspenders.

Rob Stewart                           stewart_at_[hidden]
Software Engineer           
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at, gregod at, cpdaniel at, john at