Explore the pitfalls and undefined behavior of C++'s C heritage regarding built-in types and operations in this CppNow 2021 conference talk. Dive into the upcoming MISRA-C++ guidelines to understand the motivation behind a simple integer library that ensures conformance to the "essential type model." Learn how to implement a library of "integer" types that adhere to MISRA guidelines, providing safety features such as no promotion, fixed signedness, and controlled wrap-around behavior. Discover the use of enum class types, operator overloading, and user-defined literals in the implementation. Access the code on GitHub and gain insights from Peter Sommerlad, an experienced software engineer and C++ expert, on simplifying and safeguarding software through Decremental Development.
Overview
Syllabus
Simplest Safe Integers - Peter Sommerlad [CppNow 2021]
Taught by
CppNow