0
如何在課外定義cloud
?如何定義靜態提升共享指針?
typedef pcl::PointCloud<pclPoint> pclPointCloud
class Deformer{
public:
static pclPointCloud::Ptr cloud;
};
pclPointCloud::Ptr Deformer::cloud = ??; // What to write here
我不能使用NULL或類似pclPointCloud::Ptr Deformer::cloud = boost::shared_ptr<pclPointCloud>(NULL);
來定義它嗎?
是的,它的工作。 – Shashwat 2014-10-19 10:13:02
@Shashwat如此標記他的答案爲「接受」。 – 2014-10-19 10:13:53
我不得不等待8分鐘 – Shashwat 2014-10-19 10:22:00