Explore a 44-minute conference talk from code::dive that delves into the controversial journey of implementing the discriminated union variant type in C++17. Learn about the intricate design decisions, performance considerations, and usability tradeoffs that shaped the development process through a firsthand account. Gain insights into the heated debates within the C++ committee, understand the technical challenges faced during implementation, and discover potential future developments including pattern matching enhancements and proposals to elevate variant to a first-class language feature.
The Many Variants of STD::variant in C++17 - Design and Implementation
code::dive conference via YouTube
Overview
Syllabus
Nevin Liber - The Many Variants of std variant
Taught by
code::dive conference