BOOST报错:

boost/mpl/assert.hpp:189:21: error: unnecessary parentheses in declaration of 'assert_arg' [-Werror=parentheses]
  189 | failed ************ (Pred::************
      |                     ^
./_Lib3rd/boost/mpl/assert.hpp:194:21: error: unnecessary parentheses in declaration of 'assert_not_arg' [-Werror=parentheses]
  194 | failed ************ (boost::mpl::not_<Pred>::************

其实这个错误只是使用了assert而已,关闭assert就可以了,在当前文件boost/mpl/assert.hpp 最上面一行添加:

// 禁止boost 断言宏
#define BOOST_MPL_CFG_ASSERT_BROKEN_POINTER_TO_POINTER_TO_MEMBER

boost/mpl/assert.hpp:189:21: error: unnecessary parentheses in declaration of ‘assert_arg‘ [-Werror=相关推荐

  1. Caffe编译踩坑(一):/usr/include/boost/system/error_code.hpp:233:21: error: looser throw specifier

    近期在尝试跑LiteFlowNet,需要编译caffe,因为服务器上已经安装了CUDA11.3,其采用的环境是CUDA8.0+Cudnn5.1,因此安装了CUDA8.0的相关文件,并安装了gcc-4. ...

  2. boost::mpl模块BOOST_MPL_ASSERT_MSG相关的测试程序

    boost::mpl模块BOOST_MPL_ASSERT_MSG相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块BOOST_MPL_ASSERT_MSG相关的测试程序 C+ ...

  3. boost::mpl::integral_c用法的测试程序

    boost::mpl::integral_c用法的测试程序 实现功能 C++实现代码 实现功能 boost::mpl::integral_c用法的测试程序 C++实现代码 #include <b ...

  4. boost::mpl模块实现sort相关的测试程序

    boost::mpl模块实现sort相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现sort相关的测试程序 C++实现代码 #include <boost/mpl ...

  5. boost::mpl模块实现transform_view相关的测试程序

    boost::mpl模块实现transform_view相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现transform_view相关的测试程序 C++实现代码 #i ...

  6. boost::mpl模块实现transform相关的测试程序

    boost::mpl模块实现transform相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现transform相关的测试程序 C++实现代码 #include < ...

  7. boost::mpl模块实现unique相关的测试程序

    boost::mpl模块实现unique相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现unique相关的测试程序 C++实现代码 #include <boost ...

  8. boost::mpl模块实现unpack_args相关的测试程序

    boost::mpl模块实现unpack_args相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现unpack_args相关的测试程序 C++实现代码 #include ...

  9. boost::mpl模块实现upper_bound相关的测试程序

    boost::mpl模块实现upper_bound相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现upper_bound相关的测试程序 C++实现代码 #include ...

  10. boost::mpl模块实现vector_c相关的测试程序

    boost::mpl模块实现vector_c相关的测试程序 实现功能 C++实现代码 实现功能 boost::mpl模块实现vector_c相关的测试程序 C++实现代码 #include <b ...

最新文章

  1. 学习 Ruby on Rails 真的很爽!
  2. ASP.NET MVC 3.0学习系列文章--Razor and ASP.NET MVC 3.0
  3. 第二十九天-ssh服务重要知识深入浅出讲解
  4. csdn中一篇sock 经验贴..
  5. Springboot项目结构浅析
  6. 学一点Git--20分钟git快速上手 [Neil]
  7. ICCV-2021 Oral | AdaFocus:利用空间冗余性实现高效视频识别
  8. BZOJ 1412: [ZJOI2009]狼和羊的故事( 最小割 )
  9. pivot sqlserver 条件_SqlServer行转列(PIVOT),列转行(UNPIVOT)总结
  10. Jeesite框架IDEA导入,部署,启动,打包
  11. 单片机-节日彩灯控制器
  12. 阿里Java开发规范
  13. 菜菜之路-C语言求阶乘和
  14. OpenShift免费空间申请使用教程
  15. CUPS共享打印机服务
  16. 微信到底是怎么来的?
  17. 精品分享:基于 SpringBoot + Vue 开发的云盘系统(含大文件断点续传剖析)
  18. DOS命令导出文件夹内所有文件的名称和全路径
  19. like to do 和like doing的区别
  20. C++实战案例之通讯录管理系统

热门文章

  1. dfs——xy省赛选拔题——问题 E: 整数凑和问题
  2. MySQL之Explain
  3. 触宝发布2018年第四季度财报 净收入增长147%
  4. 一行JS代码实现ie浏览器升级弹窗
  5. 用PS做的一个个人logo
  6. windows上QQ机器人搭建教程
  7. 1 - 整洁代码 - 代码整洁之道
  8. 三星 OMNIA7/I8700 刷机 ROM集合
  9. 书摘---创业36条军规4:如何组建公司
  10. 给函数取一个“好”的名字