阅读背景:

不能将“派生类的成员指针”转换为“基类的成员指针”

来源:互联网 

Calling virtual member functions of a class using a pointer to the base class is of course a very common thing to do in C++. So I find it strange that it seems impossible to do the same thing when you have a member pointer instead of a normal pointer. Please consider the following code:Calling virtual member functions of a class usi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: