Skip to content

[cpp.predefined] Use of "an" broadens condition too much #5715

Closed
@JohelEGP

Description

@JohelEGP

Originating comment: #5670 (comment).

  • STDCPP_BFLOAT16_T
    Defined as the integer literal 1 if and only if the implementation supports an extended floating-point type with the properties described in [basic.extended.fp].

The use of "an" suggests that if any other "extended floating-point type with the properties described in [basic.extended.fp]" other than std::float16_t is defined by the implementation, then __STDCPP_BFLOAT16_T__ should be defined to 1 even if std::float16_t isn't.

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