Consider adding a compile-time assert like compile_assert P4021
還沒有人認領這個 Issue。
評估
研究方向
The request is to add a compile_assert(expression, diagnostic_message) macro to Boost.Assert, modeled on the P4021R2 proposal linked in the issue. Start with the assertion headers in include/boost/assert.hpp and the existing static_assert wrappers, then check the library's test suite for how assertion behaviour is verified. Done means a design decision on the macro's semantics, implementation, and tests, which first requires maintainer agreement on whether the feature belongs in Boost at all.
由索引模型根據 Issue 內容生成。
描述
Is this the right place to share this?
Would Boost Benefit from a compile-time assert like compile_assert()?
https://isocpp.org/files/papers/P4021R2.pdf
It's all at compile-time, there is no runtime behavior. Let's us check for non-const invariants, that otherwise would need a runtime assert.
compile_assert(expression, diagnostic_message);
- 主要語言
- C++
- 星號
- 34
- 分支
- 79
- 平均合併
- 1 天 23 小時
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
boostorg/assert 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 55/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 4/5 3-5 天 新手友好度 20/100
相似的 Issue
-
agent:WSL code-review linux pri:medium refactoring
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
kind/enhancement
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 82/100
psi29a/d2decomped#691 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
CachyOS/packageinstaller#144 ·
維護者通常 1 天內回覆
-
(S1 - Need confirmation)
難度 2/5 1-3 小時 新手友好度 62/100
CleverRaven/Cataclysm-DDA#89715 ·
維護者通常 1 天內回覆