Loading…
CppCon 2018 has ended
View analytic
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 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

Chief Software Engineer, Epam Systems
Software architect, chief developer, and security champion with more than 14 years of experience in designing, writing and maintaining C++ code for fun and living. C++ consultant, trainer, and evangelist focused on Modern C++. His main areas of interest and expertise are code performance... Read More →


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

Attendees (386)