I would like to know if this is possible. I have a function:
pcl::PointCloud createPointCloud(std::Vector input)
Yes, use the makeShared() method.