int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025 @MeetingCPP
int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025  @MeetingCPP
Uploaded April 2026 | Updated November 2026, 2 days ago
int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025
Slides: slides.meetingcpp.com
Survey: survey.meetingcpp.com

C++ integers suffer from potential inaccuracy in arithmetic operations as well as undefined behavior.

This talk shows the risks involved in inappropriate integer operations and the problems with integral promotion and the "usual arithmetic conversions" that in addition to the original operands types can further confuse programmers.

We will take a look at MISRA C++ guidelines with respect to integer arithmetic and operations and see where are their limitations in static analysis.

However, the power of C++ and new standard library features will allow us to implement safer alternatives. It might be a bit of art required to actually achieve syntactical nicety, efficient implementation and well-defined behavior when dealing with whole numbers and integers.

Note: this talk will not include approaches for unlimited precision arithmetic that might be required for some domains.
int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025How much are C++ Professors talking to each other?Interview with Mateusz Pusz about his Meeting C++ 2026 keynote: Why Great C++ Libraries FailFear in Tech - Titus Winters - Keynote Meeting C++ 2024A little Introduction to Control Flow Integrity - James McNellis - Keynote Meeting C++ 2025LLVM Code Generation - Interview with Author Quentin ColombetHow to understand modern C++ features in practice? Lets create a compiler! - Boguslaw CyganekPolymorphic memory resources (PMR) in C++ #cplusplusCode Reviews: building better code and stronger teams - Sandor Dargo - Meeting C++ 2025Portable floating-point calculations - Guy Davidson - Meeting C++ 2024Purging undefined behavior and Intel assumptions in Legacy Codebases - Roth Michaels MeetingC++2025An introduction into external polymorphism in C++ and Rust - Andreas Pfaffenbichler
Meeting Cpp |

int != safe && int != ℤ - Peter Sommerlad - Meeting C++ 2025

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER