Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover how to revolutionize Finite State Machine (FSM) implementation in this comprehensive conference talk from C++Now 2024. Learn to leverage std::variant in modern C++ to transform traditional FSM designs that relied on multiple inheritance hierarchies and heap-allocated objects. Explore an intuitive approach to representing states and transitions while gaining insights into performance optimization through efficient state management without heap allocation. Master practical strategies for incorporating modernized FSMs into C++ projects, understanding design principles, and harnessing std::variant's capabilities for enhanced type safety and code readability. Presented by Amandeep Chawla, a senior computer scientist at Adobe with over 20 years of C++ experience, particularly in embedded systems and cross-platform development, this talk offers valuable perspectives for both seasoned developers looking to simplify FSM implementations and newcomers exploring advanced C++ features.