4 ms·
Good point. Also UBsan and Asan are great additions to any C/C++ workflow. But if it's actually part of the code, I'm forced to use it even if I'm lazy, versus
by hoosieree 4y ago
Good point. Also UBsan and Asan are great additions to any C/C++ workflow. But if it's actually part of the code, I'm forced to use it even if I'm lazy, versus an external tool that I can forget to run (or forget to add to my build system).
Leveraging what the compiler gives you is like that saying "the best camera is the one you have on you".
- gpderetta 4y agoGood point. I love constexpr because it allows me to write compile time unit tests inline with the library code, with static_assert. The implied UB check is gravy.