Skip to content

Typed enumerations for C++ #690

Open
@manuka89

Description

@manuka89

When generating enumerations for C++, is it possible to generate typed enumerations?

I mean to generate:

enum Color : uint8_t
{
BLUE = 0,
GREEN = 1,
...
}

instead of

enum Color
{
BLUE = (std::uint8_t)0,
GREEN = (std::uint8_t)1,
...
}

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