Need help with some code

Good day,

Im not very familiar with C++ and Im having some problems with the next code..
class ObjectDetector {



public:
ObjectDetector () : viewer ("PCL Viewer") {
save_one = false;
}

void cloud_cb_ (const pcl::PointCloud<PointType>::ConstPtr &cloud) {


if (!viewer.wasStopped()) {
viewer.showCloud (cloud);

if( save_one ) {


for (int i = 0; i < 3; i++) {
this->find(cloud, models_filenames[i]);
}
}
}
}

Im having problems how to declare: save_one, models_filenames and also an error C2664: 'ObjectDetector::find' : Cannot convert parameter 1 from 'const boost::shared_ptr<T>' to 'boost::shared_ptr<T> &' with
2> [
2> T=const pcl::PointCloud<pcl::PointXYZRGBA>
2> ]


Thank you for your help
cloud is of type const boost::shared_ptr and find requires it to not be const, just like the error says.
First of all How is this anything Windows API. Next put CODE into CODE format other thing rename the title to a significant and useful title.

Topic archived. No new replies allowed.