[c++]dynamic_pointer_cast用于shared_ptr之间类型的转换,基类需要有虚函数_I have a ... std::dynamic_pointer_cast<derived>(b_ptr); d_ptr->print(); return 0; }
確定! 回上一頁