Skip to content

Add BOOST_PP_BOOL_true and BOOST_PP_BOOL_false definitions #55

@white-echidna

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions