Explore type-safe bitwise operations in C++ with this conference talk from C++Now 2024. Delve into the advantages and challenges of flag-like integer types, including their ease of definition, language support, compact representation, and ability to enforce named parameters. Learn how Boost.Flags library addresses type safety issues in a non-intrusive, zero-overhead manner. Discover techniques for preventing unintended combinations of different flag types, avoiding implicit conversions to int, and distinguishing between flag values and their bitwise negations at the type level. Gain insights from speaker Tobias Loew's extensive experience in C++ programming and his contributions to the Boost community.
Overview
Syllabus
Fun with Flags - C++ Type-safe Bitwise Operations - Tobias Loew - C++Now 2024
Taught by
CppNow