boostorg / boostorg/preprocessor
Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions
オープン
- 主要言語
- C++
- スター
- 118
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I suggest to define a new macro
```c++
#define BOOST_PP_BOOL_true 1
#define BOOST_PP_BOOL_false 0
```
for make that possible:
```c++
BOOST_PP_IF(BOOST_PP_BOOL(true/false), "YES", "NO")
// ^-- Expands into 1/0
```
It seems like simple behavior and I have no idea why its not added yet.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。