If a virtual function is called from a constructor/destructor without
qualification, does virtual dispatch occur?
struct A
{
virtual ~A() { f(); }
virtual void f() {}
};
Is the call to f() make virtually, or is it made "statically" *,
equivalent to A::f()?
* I don't know the proper term for that.
No comments:
Post a Comment