14 Feb
2022
14 Feb
'22
7:56 p.m.
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