Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-12-18 20:46:46

----- Original Message -----
From: "DEAN STURTEVANT" <dean_at_[hidden]>

> I agree wholeheartedly. Perhaps there should be a mechanism for the
> client to provide a function for boost to call on assertion failures,
> with a prototype something like:
> typedef bool (*assertion_failure_fcn)(void* arg, const char* file,
> unsigned line, const char* message);
> The function would return true if the desired behavior is to continue
> past the assertion, false if the system should abort.
> The registration function might have prototype
> void set_assertion_failure_fcn(assertion_failure_fcn f, void* arg);

This kind of interface is pretty much obsoleted by class instances with
virtual functions, isn't it?


Boost list run by bdawes at, gregod at, cpdaniel at, john at