"olegerm" <ol********@yandex.ru> wrote in message
Does anybody know can a virtual method be inline?
Of course, it can.
Please explain.
If you invoke a virtual member function on an entity whose dynamic type is
known to compiler then it can go ahead and inline it. E.g. when you invoke
it on an object (and not base class pointer/reference), then compiler knows
the static and dynamic types and can inline the call, of course if it wishes
to do so!
Sharad