There are casting operators for shared_ptr called static_pointer_cast and dynamic_pointer_cast . In other words, if you have this code for raw pointers:
確定! 回上一頁