Safer C++: 25 MISRA Rules Explored


Details
Safer C++: 25 MISRA Rules Explored
C++ is a powerful language, but its flexibility comes with risks, especially in safety-critical systems.
We will delve into 25 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
- Potentially dangerous 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++.
Our Speaker:
Dimitris Platis calls himself a Software Engineer and a Maker. He works with embedded systems of all shapes and sizes running some kind of Linux, from Yocto to AOSP (Android).
In the evenings he likes to tinker on open source projects (github.com/platisd) and blog about them (platis.solutions/blog).
Dimitris works primarily with C++ and also offers C++ training courses for companies, with customers including large corporations from the automotive, semiconductor and defense sectors.

Safer C++: 25 MISRA Rules Explored