"Victor Bazarov" <v.********@comAcast.net> wrote in message news:fLKHb.108$xX.800@attbi_s02...
\
All compilers bind statically if a virtual function is called
from a constructor or a destructor,
Only if called directly from the constructor or destructor. However,
virtual functions are not disabled during construction, the only thing that
changes is that the effective type of the object is the class that the constructor
/destructor is being executed for.
struct B {
virtual void v();
void nv() { v(); }
};
struct D : B {
void v();
D() { nv(); } // results in D::v() getting called.