[Solution found!] 这应该起作用: if (ptr->IsChildOne()) { SomeClientExpectingAChildOne(std::static_pointer_cast<ChildOne>(ptr)); }
確定! 回上一頁