boostorg / boostorg/preprocessor
Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions
- Ngôn ngữ chính
- C++
- Star
- 118
- Fork
- 76
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start by locating the existing BOOST_PP_BOOL implementation and its tests in the preprocessor module. Check how boolean-like macro names are defined and exercised, then add the true and false definitions and verify that BOOST_PP_IF receives 1 or 0 for those inputs.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- compilers
- Loại issue
- Tính năng
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 55/100