Does visual c++ devirtualize a function for a pure class that only has one implementation? For example:
class ICar
{
public:
virtual void Break() = 0;
};
class CarImpl : public ICar
{
public:
virtual void Break(){ .... }
};
EDIT: This answer is obsoleted by my second answer of 2012-10-20. I did not delete it to preserve the comments.
It is not possible for VC++ because other derived classes can be linked to the already compiled dll or exe module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With