From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-11-17 10:59:41
From: "Thorsten Ottosen" <nesotto_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> > In general, it is recommended practice to always assert() preconditions
> > client code, instead of relying on in-library asserts. First, the
> > not required to have asserts, and second, the earlier you catch
> > violations, the better (call stacks aren't universally available).
> I don't get this. It's a poor library if it does not even check its own
> in eg. debug mode. Moreover, if you put the precondition in the library,
> take the burden away from the client; this is highly recommeded since it
> commen code _one_ place, not O(n) places!
Note that "recommended practice" in my statement above means "recommended
for library users." When you say "highly recommended" you mean "recommended
for library writers."
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk