15 Feb
2022
15 Feb
'22
4:32 a.m.
On 15/02/2022 17:25, Emil Dotchevski wrote:
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.
Why would such a library call the callback without just using throw_exception itself? And throw_exception guarantees that the boost::exception exists.