From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-31 12:15:08
Kevlin Henney wrote:
> Beman Dawes wrote:
> Needs identified so far that assertion<>() doesn't meet :
> * Reporting of file and line.
> * Parameterization of exception type.
> Perhaps those last two can also be addressed. Something to work
> For boost library authors, the first need is perhaps not as great as
> that for a user dotting their own code w/ assertions. Naming and
> describing what constraint was violated is often more useful to a
> library user than receiving a mysterious message about a piece of code
> they have nothing to do w/!
This can easilly be done with a comment:
// must fobnicate before we tweak
assert (x ? t(3) : 3434==i+j);
-- Valentin Bonnard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk