Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Fun with Flags - C++ Type-safe Bitwise Operations

CppNow via YouTube

Overview

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.

Syllabus

Fun with Flags - C++ Type-safe Bitwise Operations - Tobias Loew - C++Now 2024

Taught by

CppNow

Reviews

Start your review of Fun with Flags - C++ Type-safe Bitwise Operations

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.