BOOST_PP_VARIADICS_MSVC set incorrectly for EDG in Microsoft emulation mode
还没有人认领这个 Issue。
评估
调研方向
从 preprocessor/config/config.hpp 开始,检查设置 BOOST_PP_VARIADICS_MSVC 的条件,重点关注 _MSC_VER、EDG 和 _MSVC_TRADITIONAL 之间的交互。当 Microsoft 模拟模式下的 EDG 不再错误地将 BOOST_PP_VARIADICS_MSVC 设置为 0 时,该 issue 即完成;未提及具体的测试文件。
由索引模型根据 Issue 内容生成。
描述
In preprocessor/config/config.hpp, the condition for setting BOOST_PP_VARIADICS_MSVC to 1 is:
# if defined _MSC_VER && _MSC_VER >= 1400 && !defined(__clang__) && (defined(__INTELLISENSE__) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 1700) || !(defined __EDG__ || defined __GCCXML__ || (defined __NVCC__ && defined __CUDACC__) || defined __PATHSCALE__ || defined __DMC__ || defined __CODEGEARC__ || defined __BORLANDC__ || defined __MWERKS__ || defined __SUNPRO_CC || defined __HP_aCC || defined __MRC__ || defined __SC__ || defined __IBMCPP__ || defined __PGI)) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL)
Unless modified by a customer, when the EDG front end is invoked in Microsoft emulation mode, it defines both _MSC_VER and EDG, with the value of MSVC_TRADITIONAL being set depending on the --[no]_ms_std_preprocessor command-line option. When the EDG front end is invoked emulating the traditional Microsoft preprocessor (currently the default in Microsoft emulation mode), this results in defining BOOST_PP_VARIADICS_MSVC to 0, causing errors when Boost preprocessor variadics are used.
Presumably the fix is simply to remove the "defined EDG" test in this conditional.
- 主要语言
- C++
- 星标
- 118
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/preprocessor 的其他 Issue
-
难度 5/5 一周以上 新手友好度 38/100
boostorg/preprocessor#65 · 5 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
boostorg/preprocessor#63 ·
-
难度 2/5 1-3 小时 新手友好度 58/100
boostorg/preprocessor#58 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
boostorg/preprocessor#55 ·
-
难度 5/5 一周以上 新手友好度 25/100
boostorg/preprocessor#52 ·
查看 boostorg/preprocessor 的全部 Issue
相似的 Issue
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31098 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
bug chart-audit
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
godotengine/godot#124120 ·
维护者通常 1 天内回复