Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2022-02-14 09:20:55


On 2/14/22 08:49, Vinnie Falco via Boost wrote:
> On Sun, Feb 13, 2022 at 1:44 PM Peter Dimov via Boost
> <boost_at_[hidden]> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk