最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
google-breakpad在C++ 11下编译错误修改
时间:2022-06-25 04:51:23 编辑:袖梨 来源:一聚教程网
我只用到了exception_handler模块,暂时还未用到Server模块,因为用到了C++ 11的一些特性,而google-breadpad还没有C++11版本,所以做了一些修改,集中在类型定义处
1.
typedef typeof(((struct user*) 0)->u_debugreg[0]) debugreg_t;
修改为
#if __cplusplus > 199711L
typedef std::remove_reference
#else
typedef typeof(((struct user*) 0)->u_debugreg[0]) debugreg_t;
#endif
2.
typedef typeof(((elf_aux_entry*) 0)->a_un.a_val) elf_aux_val_t;
修改为
#if __cplusplus > 199711L
typedef decltype(((elf_aux_entry*) 0)->a_un.a_val) elf_aux_val_t;
#else
typedef typeof(((elf_aux_entry*) 0)->a_un.a_val) elf_aux_val_t;
#endif
因C++11中用了decltype来声明类型,所以做了兼容
相关文章
- agentic ai 架构 设计 最新解析 05-18
- 2026战士卡组推荐2026炉石传说战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026炉石传说战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡组推荐2026战士卡 05-18
- 微博网页版登录入口-微博快速登录网页版入口 05-18
- agentic ai 开源 框架 最新解析 05-18
- momood如何接入微信:详细操作步骤指南 05-18
- Agentic AI 图标 详细解读 05-18