From: Dave Harris (brangdon_at_[hidden])
Date: 2005-10-10 16:05:03
chaos_at_[hidden] (Jason Hise) wrote (abridged):
> Isn't that an abuse of assert?
No. The behaviour is well defined.
> Why do you need both types of checks in the same place?
To repeat what I said in my first post in this thread:
Although I sympathise with the view that a failed assert
should be considered undefined behaviour, I personally
find the current documented behaviour quite useful. I
sometimes use assert as a convenient way of saying, "issue
a warning message, but only in debug builds."
-- Dave Harris, Nottingham, UK.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk