Minor feature request: BOOST_PP_IGNORE or update docs for BOOST_PP_EMPTY
还没有人认领这个 Issue。
评估
调研方向
从 BOOST_PP_EMPTY 参考文档开始,并将其限制与 boost/vmd/empty.hpp 进行比较,后者提到了 BOOST_VMD_EMPTY(...) 这一现有替代方案。阅读 #34,了解签名约束背后的上下文。完成标准是:要么在 BOOST_PP_EMPTY 参考文档中记录该替代方案,要么添加所请求的 BOOST_PP_IGNORE(...) 行为,并且明确涵盖所选择的方法。
由索引模型根据 Issue 内容生成。
描述
The current BOOST_PP_EMPTY() is not variadic, so its usefulness in BOOST_PP_IF() and the like is limited to when there are no arguments/params in the resultant call.
For example, this doesn't work:
#define X(a, b) result(a, b)
#define MACRO(a, b, c) BOOST_PP_IF(c, X, BOOST_PP_EMPTY)(a, b)
As explained in #34, changing the signature of BOOST_PP_EMPTY() is impractical, and another solution exists: BOOST_VMD_EMPTY(...) in boost/vmd/empty.hpp.
So this is a very minor issue, but it would be nice if either:
- There were a
BOOST_PP_IGNORE(...)to do this, or... - The reference docs for the
BOOST_PP_EMPTYcould also point to the VMD macro to use instead.
- 主要语言
- C++
- 星标
- 118
- 派生
- 76
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 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
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
games-on-whales/wolf#509 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 74/100
NVIDIA/cuda-samples#453 ·