Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions