14 Feb
2022
14 Feb
'22
9:20 a.m.
On 2/14/22 08:49, Vinnie Falco via Boost wrote:
On Sun, Feb 13, 2022 at 1:44 PM Peter Dimov via Boost
wrote: Recommendation one: add source_location default arguments to your throwing functions so that the information logged at the catch site points to the call that threw.
I am less excited about changing the signatures of all public functions. I thought that BOOST_THROW_EXCEPTION attached a stack trace to the exception?
It doesn't. Collecting the stacktrace is expensive and rarely needed, so it would be unreasonable to do that by default. But you can attach it using Boost.Exception if you want.