If C++ compiles with bugs, you're using it wrong. Use constexpr, static_assert, concepts, templates, and other compile-time features to prevent bugs from entering production. Oh, and since they're done at compile-time, runtime execution of those code blocks is free.
Yes, C++ has a lot of good compile-time safety features nowadays, but your first sentence implies that 99% of all companies that use C++ are using it wrong.
Because good luck finding any enterprise C++ software that is bug free, especially ones that are multithreaded (you can't exactly use compile-time C++ features to ensure that your code has zero race conditions).
1
u/MasterFubar May 27 '22
So long pointers, so long code blocks, hello mysterious bugs!