C++ 使用boost';初始化PointLCloudT::Ptr变量时出错;s make_共享指针
我正在尝试构建当我尝试构建时,我得到以下错误:C++ 使用boost';初始化PointLCloudT::Ptr变量时出错;s make_共享指针,c++,boost,C++,Boost,我正在尝试构建当我尝试构建时,我得到以下错误: supervoxel_clustering/src/testing.cpp:157:66: error: conversion from ‘boost::detail::sp_if_not_array<pcl::PointCloud<pcl::PointXYZL> >::type {aka boost::shared_ptr<pcl::PointCloud<pcl::PointXYZL> >}’ to
supervoxel_clustering/src/testing.cpp:157:66: error: conversion from ‘boost::detail::sp_if_not_array<pcl::PointCloud<pcl::PointXYZL> >::type {aka boost::shared_ptr<pcl::PointCloud<pcl::PointXYZL> >}’ to non-scalar type ‘pcl::PointCloud<pcl::PointXYZL>::Ptr {aka std::shared_ptr<pcl::PointCloud<pcl::PointXYZL> >}’ requested
PointLCloudT::Ptr subcloud = boost::make_shared<PointLCloudT>();
错误源于试图将升压
共享\u ptr
转换为标准升压。PCL于2019年开始向std共享指针过渡,我认为……错误来自于试图将boost共享指针转换为std指针。PCL在2019年开始向std共享指针过渡,我想。。。
supervoxel_clustering/src/clustering.cpp:406:63: error: conversion from ‘boost::detail::sp_if_not_array<pcl::Supervoxel<pcl::PointXYZRGBA> >::type {aka boost::shared_ptr<pcl::Supervoxel<pcl::PointXYZRGBA> >}’ to non-scalar type ‘pcl::Supervoxel<pcl::PointXYZRGBA>::Ptr {aka std::shared_ptr<pcl::Supervoxel<pcl::PointXYZRGBA> >}’ requested
SupervoxelT::Ptr sup_new = boost::make_shared<SupervoxelT>();
PointLCCloudT::Ptr cloud_temp(new PointLCCloudT);