c++编译错误:expected a qualified name after ‘typename’

错误信息:

/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)

解决方案:

将 “typename const”改成“const typename”即可

 

原文链接: https://www.cnblogs.com/shirley-bhu/p/10481367.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    c++编译错误:expected a qualified name after 'typename'

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/291046

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月15日 下午1:19
下一篇 2023年2月15日 下午1:20

相关推荐