我想写一些易于调用的对象初始化,我希望这些对象是MyClass的shared_ptr。created in c style like this: MyClass * obj2 = new MyClass(5);
} 现在我想用简单易用的智能指针初始化来改变这一点我的目标是看起来像一个构造函数调用,这样只
我尝试使用以下命令声明PCL类的对象PointCloudT::Ptr scene = new PointCloudT(); // and these two triggers the error of
初始化错误C2440:‘1>f:\cpps\pclrclass\pclrclass\main_routine.cpp(10):’:无法<e