c++編譯錯誤:expected a qualified name after 'typename'

錯誤信息:this

/Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected a qualified name after 'typename'
        cv::Mat convertPointCloudHistogramToCvMat(typename const pcl::PointCloud<HistogramT>::ConstPtr cloud_in)
                                                           ^
/Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected a qualified name after 'typename'
/Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:53: error: expected ')'
/Users/mac/pointCloudDemo/Keypoint-Learning-master/include/impl/point_cloud_utilities.hpp:107:43: note: to match this '('
        cv::Mat convertPointCloudHistogramToCvMat(typename const pcl::PointCloud<HistogramT>::ConstPtr cloud_in)

解決方案:spa

將 「typename const」改爲「const typename」便可
相關文章
相關標籤/搜索