Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore dynamic polymorphism in C++ beyond traditional virtual functions and inheritance in this ACCU 2021 conference talk. Delve into type erasure as an alternative approach, examining its implementation challenges and comparing it to other languages like Rust. Discover a potential future design for interface-based type erasure in C++ that combines the convenience of inheritance with additional benefits. Learn about proposed code injection and metaclasses facilities, and gain insights into a prototype implementation using the experimental metaclasses Clang fork. Presented by Sy Brand, Microsoft's C++ Developer Advocate, this talk offers valuable perspectives on advanced C++ programming techniques and potential language enhancements.