正确的方法应该是这样. boost::shared_ptr<A> kk (boost::const_pointer_cast<A>(Ckk)); boost::shared_ptr kk(boost::const_pointer_cast(Ckk)); ...
確定! 回上一頁