《more effective C++》条款28里的一句话
lw1a2 2006-10-05 03:42:29 “指针pointee是指向T类型的,把它转变成指向其基类(public或protected)对象的指针必然是合法的。”
原文:
pointee is of type T, so it is certainly legal to convert it into a pointer to its (public or protected) base classes.
这里的protected是指保护继承?可是保护继承的派生类是不能转换成基类的