Video details

Breaking Dependencies: Type Erasure - A Design Analysis - Klaus Iglberger - CppCon 2021

English ---
This session is part of the Software Design Track.
“If I could go back in time and had the power to change C++, rather than adding virtual function, I would add language support for type erasure …” (Eric Niebler, June 19, 2020, Twitter).
For many developers type erasure is superior to inheritance. And indeed, it has proven itself to be a powerful design pattern, helping to significantly reduce coupling between software entities.
This talk will give a short introduction to type erasure, with a particular focus on the design aspect of the technique. After attending this session, attendees will understand why type erasure provides such a strong decoupling and why this makes it superior to inheritance in terms of dependency management.
--- Klaus Iglberger
Freelancer C++ Trainer/Consultant Klaus Iglberger is a freelancing C++ trainer and consultant. He has finished his PhD in computer science in 2010 and since then is focused on large-scale C++ software design. He shares his experience in popular advanced C++ courses around the world (mainly in Germany, but also the EU and US). Additionally, he is the initiator and lead designer of the Blaze C++ math library ( and one of the organizers of the Munich C++ user group (
Videos Streamed & Edited by Digital Medium:
The CppCon YouTube Channel Is Sponsored By: JetBrains :