Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-09-11 14:32:05


Eric Ford wrote:
> BTW- Does anyone see a need for a user to provide an error handeler
> that has non-static members?

If error handlers may only have static members, that means that
any data the error handler is accessing must have "global" lifetime.
If you wish to pass e.g. an ostream& to log the problem, you can
only do so in a global variable.

Not nice from a software engineering point of view.

However, the question is how much uglier the code gets with
stateful error handler objects.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk