Loading…
CppCon 2018 has ended
Back To Schedule
Thursday, September 27 • 15:15 - 15:45
Effective replacement of dynamic polymorphism with std::variant

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

This short talk presents how easy it is to replace some cases of dynamic polymorphism with std::variant. During the lecture, we will analyze and compare 2 implementations of the same simple Finite State Machine. It turns up that variant-based code is not only much faster but also it gives us the opportunity to define our interfaces and program flow much better. The talk will end up with the discussion of pros and cons of each approach and will try to give guidelines on when to use them.

Speakers
avatar for Mateusz Pusz

Mateusz Pusz

Principal Software Engineer | Trainer, EPAM Systems | Train IT
A software architect, principal engineer, and security champion with more than 15 years of experience in designing, writing, and maintaining C++ code for fun and living. A trainer with 10 years of C++ teaching experience, consultant, conference speaker, and evangelist. His main areas... Read More →


Thursday September 27, 2018 15:15 - 15:45 PDT
Breckenridge Hall (1st Floor)