|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-09 11:25:13
From: "Rob Stewart" <stewart_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> >
> > Anyway, boost_throw is not a customization point for generic code, it is
a
> > replaceable error handler. I'll be happy to comply to whatever the Boost
> > policy is, whenever there is one, I mean.
>
> That leads me to wonder whether we should take the set_terminate, et. al.,
> approach:
>
> namespace boost {
> typedef void (*exception_handler_function)(???);
>
> exception_handler_function
> set_exception_handler(exception_handler_function);
> }
The problem with this approach is:
weak_ptr<X> wp;
shared_ptr<X> sp(wp); // calls handler
int main()
{
set_exception_handler(...); // too late
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk