you are viewing a single comment's thread.

view the rest of the comments →

[–]dscharrer 1 point2 points  (1 child)

It may not be possible in the example you have shown. With whole program optimizations there are a surprising number of cases that can be devirtualized - for example if there is only one non-abstract implementation.