Safer C++: Let’s explore the latest MISRA guidelines

C++ is a powerful language, but its flexibility comes with risks, especially in safety-critical systems.

In this talk, we will delve into the latest MISRA C++ rules, see practical code examples, and discuss how these guidelines can lead to safer systems.

MISRA C++:2023 defines a safer, more predictable subset of C++17, helping developers to avoid:
– Undefined behavior
– Relying on unspecified or implementation-defined behavior
– Risky coding practices the language “allows”
– Subtle bugs stemming from common misunderstandings of the language

While some rules may seem restrictive or opinionated, C++ developers may benefit from keeping them in mind even for general-purpose C++.
Let’s explore and reflect on these guidelines together and get some new ideas of how to write safer C++.