Safer C++: 25 MISRA Rules Explored // Deducing this in C++23
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++.
The 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.
Short talk: It's dangerously verbose to go alone - take this
Showcasing some of the surprisingly many use cases for explicit object member functions / deducing this.
Keywords: explicit object member functions, deducing this, c++23
Duration: 10-15 mins
The Speaker:
Stephan Roslen enjoys delving into the more obscure aspects of C++ and is keen to grasp every feature of the language. He likes to apply them in creative ways to produce concise, comprehensible code that performs well on real hardware.