|
Boost : |
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2022-02-15 04:25:39
On Mon, Feb 14, 2022 at 7:31 PM Peter Dimov via Boost <boost_at_[hidden]>
wrote:
>
> Emil Dotchevski wrote:
> > Thank you for spelling it out. Maybe take the boost::exception object
as a
> > pointer though? That way this (standard for Boost in the future) handler
> > can be invoked with exception objects that do not derive from
> > boost::exception (even though boost::throw_exception guarantees that
they
> > do).
>
> Well, the point of the handler is to put things into the boost::exception
base,
> so if there isn't one... :-)
I know it's why you did it by reference, but this handler can be useful for
other libraries also, as well as for e.g. logging, etc. It's a chance to do
something before a Boost library throws.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk