When can the C++ compiler devirtualize a call?

2 points by raymii