总结调用PCL库函数出现的各种报错

  • Post author:
  • Post category:其他


  1. 错误 C2913 显式专用化;“boost::type_of::id2type_impl”不是类模板的专用化 d:\program files\pcl 1.8.1\3rdparty\boost\include\boost-1_64\boost\typeof\msvc\typeof_impl.hpp 125

    报错的位置如下:
struct id2type_impl<true>  //VC8.0 specific bugfeature

参照

博客


在boost-1_64版本中,boost\typeof\typeof.hpp

// Copyright (C) 2004 Arkadiy Vertleyb
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_TYPEOF_TYPEOF_HPP_INCLUDED
#define BOOST_TYPEOF_TYPEOF_HPP_INCLUDED

#if defined(BOOST_TYPEOF_COMPLIANT)
#   define BOOST_TYPEOF_EMULATION
#endif

#if defined(BOOST_TYPEOF_EMULATION) && defined(BOOST_TYPEOF_NATIVE)
#   error both typeof emulation and native mode requested
#endif

参照

博客


综上可以得出以下结论:

在所有头文件前添加以下宏定义即可

#define BOOST_TYPEOF_COMPLIANT



版权声明:本文为h_hbx原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。