Boost logo

Boost :

From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2022-02-14 19:56:29


On 13/02/2022 21:43, Peter Dimov via Boost wrote:

> Recommendation two: add source locations to your error_codes if using
> Boost.System.

That seems unwise advice to give unqualified. Every time you instance a
source location you add the path of your source file to your binary,
which bloats your binary.

The same occurs when people use __FILE__ everywhere and think it cost
free. It isn't.

What I like about stacktraces is that they are genuinely cost free if
you can ensure they are only collected when useful, albeit they can lack
essential detail sometimes if the optimiser does too well.

Niall


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