|
Boost : |
From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-04-11 23:13:54
on 4/12/00 12:25 AM, Paul Jensen at pdjensen_at_[hidden] wrote:
> Has there been a discussion in this list of providing throw specifications
> under
> the control of a preprocessor define such as NDEBUG? It sounds attractive in
> documenting exceptions and avoiding the overhead in production use.
There has been no discussion of this particular idea.
The correct language mechanism for documenting exceptions is spelled '//'
(or /*...*/ if you're old-fashioned). This usage causes no overhead (and no
undesired run-time behaviors) even in debug builds.
Just-say-no-ly y'rs,
Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk