Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-22 11:45:57


Vladimir Prus wrote:
>> Yes. assert is not equivalent to perror/abort. The two have different
>> meanings and are not interchangeable.
>
> Care to elaborate why the change cannot be made in this specific case?

assert(expr) means a precondition failure or an internal error, depending on
expr.

perror/abort means... perror/abort.

If the problem you are trying to fix is that assert() does not give enough
information about the bug - and I haven't seen this particular problem
reported as a defect - the proper way to fix it is to define an
user-overrideable callback.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net