Skip to content

Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions #55

Description

@white-echidna

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions