Attending this event?
Back To Schedule
Wednesday, October 4 • 09:00 - 10:00
A Journey Into Non-Virtual Polymorphism

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Log in to leave feedback.
Join me on an introductory journey into polymorphism that doesn't use class inheritance and virtual functions. I'll share my amazement at how polymorphism permeates C++. Then we'll visit the long-used Curiously Recurring Template Pattern (CRTP) with its modernization using implicit this.

Do you like lambdas? So does the override pattern, which uses them to handle std::tuples and std::variants with std::apply and std::visit.

Want to walk through a container of disparate types invoking their functions? You'll see this and all the above in code examples galore.

Afterward, you'll be eager to learn more on your own!

avatar for Rudyard Merriam

Rudyard Merriam

Retired, Mystic Lake Software
Rud Merriam is a retired software developer, having lived through the spaghetti, structured programming, and object-oriented development paradigms. He's trying to figure out functional programming and keep up with the latest C++ standards.Rud wrote his first FORTRAN IV in 1968 and... Read More →

Wednesday October 4, 2023 09:00 - 10:00 MDT