r/cpp • u/david-alvarez-rosa • Apr 23 '26
Devirtualization and Static Polymorphism
https://david.alvarezrosa.com/posts/devirtualization-and-static-polymorphism/
81
Upvotes
r/cpp • u/david-alvarez-rosa • Apr 23 '26
View all comments
17
u/_Noreturn Apr 23 '26
I really hate when I see static polymorphism stated as an altnerative to virtual polymorphism when 99.9% of the time I used virtual polymorphism is because I don't want the call to be known.