Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions #55

Open
exldna opened this issue Dec 16, 2023 · 0 comments
Open

Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions #55

exldna opened this issue Dec 16, 2023 · 0 comments

Comments

@exldna
Copy link

exldna commented Dec 16, 2023

I suggest to define a new macro

#define BOOST_PP_BOOL_true 1
#define BOOST_PP_BOOL_false 0

for make that possible:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant