代碼段為 typedef std::auto_ptr<CVst> CVstPtr;
CVstPtr SendBJBst( )
{
return NULL;
}
報錯: error C2664: “std::auto_ptr<_Ty>::auto_ptr(std::auto_ptr<_Ty> &) throw()”: 不能將引數 1 從“int”轉換為“std::auto_ptr<_Ty> &”
1> with
1> [
1> _Ty=DsrcFW::CVst
1> ]
如何解決,求指教
uj5u.com熱心網友回復:
return (CVstPtr)NULL;
uj5u.com熱心網友回復:
不要再用auto_ptr了改用 shared_ptr
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/75921.html
標籤:基礎類
上一篇:鏈接出錯,大牛幫看看,謝謝
下一篇:如何高效學習CPP
