Boost logo

Boost :

From: Oleg Abrosimov (beholder_at_[hidden])
Date: 2006-07-18 22:48:32


Jeremy Day wrote:
> On 7/18/06, Andreas Huber <ahd6974-spamgroupstrap_at_[hidden]> wrote:
>> How is your approach better than:
>
> [snip]
>
> Heh. Well, when you put it that way it probably isn't. However, the
> function object that you pass into catcher could contain application state
> information. You could also use any functor that you happen to have around
> that has operator()(std::logic_error&), operator()(std::exception&), or
> operator()(void).

additionally, this functor can be useful in a context where no
exceptions are thrown at all - in filesystem functions with additional
error_code parameter, if Beman'll eventually replace it with generic
exception visitor approach.

>
> Jeremy
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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