boostorg / boostorg/preprocessor
Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions
- Langage dominant
- C++
- Étoiles
- 118
- Forks
- 76
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- compilers
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100