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
Show parent comment
4
u/Serious-Regular Apr 24 '26
what does this even mean? known to whom? the user/developer or the compiler? you're saying you want an abstract interface fine but what kind of take is it that you intentionally prefer that the compiler wouldn't know....?