
Jeremy Day wrote:
On 7/18/06, Andreas Huber <ahd6974-spamgroupstrap@yahoo.com> 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