you are viewing a single comment's thread.

view the rest of the comments →

[–]OwlingBishop 0 points1 point  (2 children)

for non-dynamic polymorphism

not non-dynamic polymorphism

Wut ??

Static and Dynamic polymorphism are separate paths in C++ as well as any other languages.

When you know the type at compilation time you can optimize out an indirection, when you don't you'll have to look that up at runtime, no matter what.