If that pointer is a base-class type pointer that points to a derived-type object, then that object is sliced down ( Section 15.3.1, p. 577); only the base-class part is thrown.
如果该指针是一个指向派生类对象的基类类型指针,则那个对象将被分割( 第15.3.1节),只抛出基类部分。
If that pointer is a base-class type pointer that points to a derived-type object, then that object is sliced down ( Section 15.3.1, p. 577); only the base-class part is thrown.
如果该指针是一个指向派生类对象的基类类型指针,则那个对象将被分割( 第15.3.1节),只抛出基类部分。
应用推荐