15 Feb
2022
15 Feb
'22
4:25 a.m.
On Mon, Feb 14, 2022 at 7:31 PM Peter Dimov via Boost
Emil Dotchevski wrote:
Thank you for spelling it out. Maybe take the boost::exception object
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
do).
Well, the point of the handler is to put things into the boost::exception
as a they 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.