Skip to content

enum_flags_name() can be constexpr, with returning static_string if enum is flag #152

@schaumb

Description

@schaumb

enum_flags_name() currently returns with std::string, which is can not be a constant expression.
Constexpr time can be calculated of the enum flags returning string maximum size (sum of all {enum name size} + count-1 for the separators).
This can be used as the result of the static_string template argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions