Removing Undefined Behavior from Integer Operations - The Bounded-Integer Library
Offered By: CppNow via YouTube
Course Description
Overview
Explore David Stone's C++Now 2014 talk on the bounded::integer library, which aims to eliminate undefined behavior in integer operations. Learn about the library's motivation, unique features, and implementation details. Discover how to use template policies, syntax, and user-defined literals to create safer integer types. Examine the library's support for inclusive bounds, implicit conversions, and its limitations with floating-point numbers. Gain insights into policy classes, integer overflow handling, and implementation considerations for more robust C++ programming.
Syllabus
Introduction
Undefined behavior
Check Integer
The constrainedvalue library
The original motivation for this library
What boundedinteger does differently
Supported compilers
Declaration
Template policies
Syntax
Goblin example
Common policy
Constants
Userdefined literals
Forward declaration
Inclusive bounds
Implicit conversions
Limitations
Floating point
Questions
Policy class
integer overflow
implementation questions
Taught by
CppNow
Related Courses
Information Security - 5 - Secure Systems EngineeringIndian Institute of Technology Madras via Swayam A Crash Course in C
Northwestern University via YouTube Hacking the Supply Chain - The Ripple20 Vulnerabilities Haunt Tens of Millions of Critical Devices
Black Hat via YouTube WebAssembly - A New World of Native Exploits on the Browser
Black Hat via YouTube Squashing Low-hanging Fruit in Embedded Software
Hack In The Box Security Conference via YouTube