After #include <boost/make_shared.hpp> added to particle.hpp, the error :'make_shared' is no member of boost disapeared, but another erroe arise:
particle.hpp:76:75: error: no match for ‘operator=’ (operand types are ‘pcl::PointCloudpcl::PointXYZ::Ptr {aka std::shared_ptr<pcl::PointCloudpcl::PointXYZ >}’ and ‘boost::detail::sp_if_not_array<pcl::PointCloudpcl::PointXYZ >::type {aka boost::shared_ptr<pcl::PointCloudpcl::PointXYZ >}’)
initial_guess_ = boost::make_shared<pcl::PointCloudpcl::PointXYZ>();
Is this error mean: the private members are initialed with std::shared, but in the "operator=' these menbers were asignmented with boot::shared? I use PCL 1.11.1
I change 'boost::make_shared' to 'std::make_shared', then it works. Thank you!
I think pcl use the std shared pointer instead of boost shared pointers in 1.11.1