Skip to content

CWG2932 Value range of empty enumeration #2138

Open
@jensmaurer

Description

@jensmaurer

C++17 defined the values of an empty enumeration to be just 0.

As-is, CWG2932 restores that rule.

However, popular implementations determine the value range of an empty enumeration to be 0 and 1, reflecting the single bit of storage assigned to the representation.

EWG should decide whether to keep the C++17 rule or adjust the wording to the implementation practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++26Targeted at C++26EWGEvolutionpaper neededAn issue needs a paper to describe its solution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions